Make AI assess your bot responses
AI is great at processing a lot of information and producing useful summaries or making suggestions. We can employ it to suggest improvements to the bot flow based on the bot response data, understand the emotional aspect of the conversations, etc This can be done using the OpenAI Integration Automation.
Step 1. Add and set up the OpenAI integration. Navigate to the organization integrations section:
![Screenshot-2023-01-25-at-21.30.32-1-.webp](https://academy.quriobot.com/response-connections-integrations/open-ai-integration/make-ai-assess-your-bot-responses/28170.en-us_huafdeea04d1ec832d812228e5a4db6b57_612184_20x0_resize_q75_h2_box_2.webp)
Step 2. Open the automation section of the integration settings:
- select a bot, responses will be assessed for
- select a period for which the responses will be selected for the assessment
- adjust parameters sent to AI to get the result.
In our example, we ask a model to suggest improvements to the bot flow based on the bot responses:
{
"messages": [
{
"role": "system",
"content": "You're a chatbot expert"
},
{
"role": "system",
"content": "Review the chat transcripts and suggest an improvement to the bot flow"
},
{
"role": "user",
"content": "Chat transcripts"
},
{
"role": "user",
"content": "{{chatTranscriptsMarkdown}}"
}
]
}
As you can see, variables are supported in the parameters. Namely, we use the chatTranscriptsMarkdown variable that will be resolved to the bot responses text transcripts in the Markdown format.
We’re done with the settings!
Once the action is executed, the result will be sent to the organization’s finance email that you set in the organization’s settings.
An email will look like this:
![b8089906-ce72-460b-aabe-3b168ee87981.png](https://academy.quriobot.com/response-connections-integrations/open-ai-integration/make-ai-assess-your-bot-responses/28173.en-us_hueb62e00b87b4a8b484fd98198e496440_607291_20x0_resize_box_3.png)