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.28.46-1-.webp
Add the OpenAI integration:

Screenshot-2023-01-25-at-21.30.32-1-.webp

Step 2. Open the automation section of the integration settings:

Screenshot2024-05-19at18.41.30.png
Create an automation rule:

ea487426-0b89-4d99-b744-cc6305729531.png
Select the needed trigger (daily, weekly, or monthly). Create an action, select its type: Response assessment, and set the action 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

Edit this page

Categories
Tags
See also