The bot is encountering an error ("list index out of range") when attempting actions that require querying an external API.
I added an action to search for a product on a ecommerce site. There's a discrepancy in the configuration of an action. After specifying a JSON schema for the request body and saving it, the schema reverts back to the default state (i.e., "{}") upon reopening the action details. It doesn't save the schema details. Although, the name, description and headers were being saved.
Sometimes the copilot will ask further details about the product and on specifying that there will be no response from it.
The expected format for the request body includes a JSON object with a "q" key representing the product query.
The API responds with a JSON object containing an array of "products," each representing a product found based on the query. Each hit product details such as "product_id", "product_name", product_thumbnail", etc.
Along with "hits" it also return the query which was sent as response and total_products (number of products that are found based of the query).
Unable to search.
Not repliying.
Not hitting API in the backend.
- OS: Windows 11
- Browser: Chrome Version 125.0.6422.142