An external API (Application Programming Interface) refers to a set of rules and protocols that allow one software application to interact and communicate with another external software system, service, or platform. It enables different software programs to access and exchange data and functionalities seamlessly, even if they are developed by different organizations or run on different servers.
Before proceeding, ensure you have added all the necessary custom attributes that you’ll require for the API interactions. Custom attributes will help capture and manage data. Refer to the doc before creating and managing the custom attributes
Under “Configure APIs,” set the following details. The structure is similar to Postman for testing APIs:
API Name: This is the display name for the API, used for better readability within Convertalk.
API Method: Specify the HTTP method (e.g., GET, POST, PUT).
Enter API URL: Provide the URL for the API you intend to call.
Query Parameters: Add any required query parameters.
Headers: Include necessary headers for the API.
Body: Define the request body if needed.
Note: If you want to insert custom variables within the API, use / as a placeholder. However, for the initial setup, you’ll need to enter the actual values to test the API and save the response structure.
Map the next question based on your API’s response code (e.g., 200, 300, etc.). If the API response code doesn’t match any predefined values, it will trigger the response mapped to “others.”
And you’re done! Your API is ready to enhance your chatbot’s functionality and provide dynamic interactions based on API responses.