API Card: For advanced functionalities, you can make API calls to external services.

Created
Feb 5, 2024 8:50 PM
Tags

What is an API card?

Use an API Card to integrate data from a third-party application. The API card will enable you to specify templates to consume data and format it to be viewable through the bot conversation.

Step 1: Open your conversation and click on the More option.

image

Step 2: Select API from the below options.

image

Step 3: To integrate any 3rd party application, you need to input the API details.

image

Step 4: Select API ID and enter API URL, and API Body.

Step 5: Click on +Add Parameter to add parameters.

image

Step 6: Enter the Parameter Name and Value and click on Add Parameter.

image

Step 7: You can Select Json Templates or Set Attribute.

image

Step 8: To add Json Templates, the user will click on +Add Json Templates.

image

Step 9: Here, you will create a JSON template to format API’s response.

Select Json Type from the drop-down list and its respective template example will appear. You need to add your JSON code and click Save.

image

To add attributes, you will select Set Attributes and enter attribute details.