Skip to main content

OpenAI

OpenAI (ChatGPT) integration gives your chatbot the ability to answer general questions about almost anything you can imagine. To start using it, follow the steps below.

  1. Register at https://beta.openai.com/signup.
  2. Get an API key from https://beta.openai.com/account/api-keys and paste it into Settings > Dialogflow > OpenAI > API key.

Generate user expressions - Option​

When this option is active, OpenAI will generate new user expressions in real time when you open the Dialogflow Intent window by clicking the Send to dialogflow menu item of a message in a conversation.

Generate user expressions - Button​

When you click the button Generate user expressions, OpenAI will update your Dialogflow agent and generate new user expressions for each Intent.

  • Make a backup of your Dialogflow agent first.
  • This task can take several minutes or even hours if your chatbot has a lot of Intents. Since the operation takes a long time, your server may interrupt the operation (operation timeout) before it finishes, in which case you need to click the button again. You can verify if the operation is interrupted by checking the browser console for errors.
  • This task is performed only once per Intent. Previously processed Intents will be ignored.
  • This task checks existing user expressions and does not create duplicates.
  • The first 5 user expressions will be used to generate new user expressions.
  • Since this is an automated process, we strongly recommend reviewing your Intents after the task has been completed.

Information​

  • The OpenAI query is performed only if the chatbot does not know the answer to the user's question and if the length of the user's message is greater than 6 characters.