• I get “Sorry, I couldn’t process your request. Please try again.” for anything I enter in chat or search. I verified my API key is valid and there are funds in the account.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jamador

    (@jamador)

    I had it set to use Gemini, but it seems like that one doesn’t work with AI Actions (function calling), so I switched to OpenAI so it is working better, but the search box doesn’t work while the chat does:

    Plugin Author Md Akram Hossain

    (@akramhossain)

    Hello @jamador ,

    Thank you for reaching out and for following up with the details!

    We’re glad to hear that switching to OpenAI resolved the AI Actions (function calling) issue for your chat widget.

    Regarding the AI Search Block not returning results while the chat works, this usually happens due to a difference in how the search block processes vector embeddings and REST API endpoints. Here are the most common causes and steps to resolve it on your website:

    1. Re-index your Knowledge Base (Crucial after switching providers)
    Because you switched from Gemini to OpenAI, the vector embeddings previously generated for your content might be incompatible with the active OpenAI model.

    • Go to WordPress Admin → Antimanual → Knowledge Base / Indexing.
    • Click Re-index / Sync Knowledge Base to regenerate embeddings using OpenAI.

    2. Try Disabling Response Streaming
    The AI Search Block attempts to stream answers via Server-Sent Events (SSE). Some hosting environments, firewalls (like Cloudflare, ModSecurity), or server rules (LiteSpeed / Nginx proxy buffering) block live streaming connections.

    • Go to WordPress Admin → Antimanual → Settings → Chatbot & Search.
    • Toggle Disable Streaming (or untick Enable Streaming).
    • Save changes and test the search block again.

    3. Verify WordPress Permalinks & REST API Access
    The Search Block relies on the WordPress REST API endpoint (/wp-json/antimanual/v1/search).

    • Go to WordPress Admin → Settings → Permalinks.
    • Ensure your permalinks are set to Post name (not Plain) and click Save Changes to refresh your rewrite rules.
    • Ensure security plugins (like Wordfence, iThemes, or Cloudflare rules) are not blocking requests to /wp-json/antimanual/v1/.

    4. Clear Site & Plugin Caches
    If you use page caching plugins (e.g., LiteSpeed Cache, WP Rocket, W3 Total Cache) or Cloudflare, clear your site cache. Old nonces or scripts cached on the page can prevent search requests from completing.

    If the issue persists after trying these steps, please perform a quick check:

    1. Open the page containing the Search Block in Google Chrome or Edge.
    2. Press F12 (or right-click → Inspect) and go to the Console and Network tabs.
    3. Try typing a query into the AI Search Box.
    4. If any red error message or HTTP status code (e.g., 403 Forbidden, 404 Not Found, or 500 Server Error) appears, please send us a screenshot.

    We’re here to help get this sorted out for you!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.