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.
Step 2: Select API from the below options.
Step 3: To integrate any 3rd party application, you need to input the API details.
Step 4: Select API ID and enter API URL, and API Body.
Step 5: Click on +Add Parameter to add parameters.
Step 6: Enter the Parameter Name and Value and click on Add Parameter.
Step 7: You can Select Json Templates or Set Attribute.
Step 8: To add Json Templates, the user will click on +Add Json Templates.
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.
To add attributes, you will select Set Attributes and enter attribute details.