Allows generating a new response from a specific agent based on user input. This endpoint processes the user's query, utilizes AI models, and optionally retrieves information from predefined sources before returning a response.Staging behaviour:
Pass agent_version=staging as a query parameter to generate the response using the staging version instead of the published agent's.
Path Parameters:
agent_id: ID of the agent for which the response is to be created.
Request Body:
A JSON object with fields to process the chat interaction.
Returns:
JsonResponse: A JSON response containing the result of the chat interaction or an error message.