How to Integrate Systems with AI Chatbots Through API Integration

Article author
Zendesk Admin
  • Updated

The Chatbot feature has successfully connected to other systems via API Integration. To improve the quality of the Chatbot connection so that it can respond more humanely, we have activated the API Configuration for Chatbot AI by utilizing a feature in OpenAI called Function Calling.

With this feature, AI can obtain information about several things that have been shared by customers (such as: receipt numbers, etc.), and can use this information to answer customer questions with a more human response. The following are the stages in integrating the system with Chatbot.

  1. The first thing you need to do is to connect first on the API Integration page and click “Add API connection”. Learn more here.
  2. After setting up the connection, we need to define the function parameters so that the AI ​​can retrieve the information. Click “Add function” on the API Connection details page.
    1.png
  3. Then fill in the following columns.
    2.png
    Information:
    No Feature Name Explanation
    1 Function name Enter the name of the Function to be used.
    2 Description Describe the function. In this case, you must fill in the description so that AI can understand the purpose of the Function. The description will help AI in recognizing the user input entered or asked.
    3 API_path Fill in the address that allows you to access the API and its various features.
    4 API_method Fill in the API_method to perform the release on the method request and method response.
    5 API_headers Fill in the API_headers section.
    6 API_body Fill in the API_body section.
    7 Add parameter

    Add a parameter function by clicking the button.

    When you add a parameter, the following column will appear consisting of Parameter name, Description, and Type. Then check the toggle "Set as required" so that the AI ​​system can work.

    3.png

    In the Description column, you need to fill in a clear description so that AI can understand the purpose of the Function. The description will help AI in recognizing user input that is entered or asked.

    For now, please use only one parameter at first to avoid hallucinations (AI errors in understanding Functions) because Function calls are still in Beta Stage.

  4. After all the data is filled in, click “Add”.
    4.png
  5. Once all connections are set up, go to the Conversations page in the Chatbot menu, then select one of the Conversation names.
    5.png
  6. In one of the Conversation names, you can set which bot responses will connect to the API. In the AI ​​response section, click “knowledge sources” as shown in the following display.
    6.png


    This API Integration will only be displayed in AI Bot Response. So, you need to create an AI Bot Response first.

  7. Then the Bot response - Welcome message information box will appear, then select the API Integration tab. Check the "Use API Learning Source" box.
    7.png
  8. Then, you must select the API Connection that was created previously and select Parameters.
    8.png
  9. Once all the steps have been completed, the Chatbot AI can connect to the API to get information.

That's how to integrate the system with Chatbot. You can also learn how to create a Welcome Message Chatbot here.