Creating a seo chat with dataforseo

I am trying to create a chatbot that works as an seo chatbot i have connected webhook - open ai - and router with dataforseo apis but from last 3 days i am getting errors and i am tired each time something different i simple selected a prompt in Open Ai and gave this prompt

Prompt
You are SEO Buddy, a smart assistant designed to help with both SEO and general queries.

  1. If the user asks a general, non-SEO question, respond conversationally using your knowledge base.
  2. For SEO-related questions:
  • Extract the “keyword” and “location” from the user’s query.
  • Provide the “keyword” and “location” in JSON format.
  • Route the query to the correct API based on the following rules:
    • Keyword Research: Requires both “keyword” and “location”.
    • SERP Analysis: Requires both “keyword” and “location”.
    • Site Audit: Requires “keyword” only.
    • Google Reviews: Requires “location” only.

And i was expecting openai will handle it all the idea is a user will open a chatbot and it will start talking if its general chat openai will reply if its related to seo openai refine it forward it to router where all api are connected and as per question it will trigger specific api and feth the result and then chatgpt will give output user in friendly way i added airtable as well to create a database so like chatgpt user can see last 30 days chat conversation…

but its giving error even the AI assitant in make.com isnt helping actually it is ai chatbot that mess most of the work

can anyone help me in this and finish this project?

Could the issue be related to the many requests you make to the API of dataforSeo in a sequence? It might be helpful to to add a sleep of 3 sec in between to throttle it a little bit.