BotPenguin for Partners
DocsSupport
  • Partner Onboarding
    • Introduction
    • Partner Onboarding
    • Understanding your plans
  • Partner PLATFORM GUIDELINES
    • Dashboard
    • Customer Management
    • Team Management
    • Plans Management
      • Configurations
      • Plans
      • Add-on
      • Invoices
    • Integration Setup
      • Setup Google reCAPTCHA
      • Setup AWS SES Account
      • Setup ChatGPT Account
      • Setup Zoho Integrations
      • Setup Google OAuth App
      • Setup RazorPay Account
      • Setup Stripe Account
      • Setup Facebook App for WhatsApp & Facebook Bots
        • Create Facebook Login for Business Configuration
        • Meta System User Token
    • Configurations
      • Retention Policy
      • Custom Domain
      • Custom Script
      • Bot templates
      • Whatsapp Templates
    • Subscriptions
    • Feedbacks
    • Brand & Account Management
  • Customer Platform Guidelines
    • New Bot Setup
      • Website Chatbot
      • WhatsApp Chatbot
        • ⚙️WhatsApp Bot Creation with Automated onboarding
        • 🐧Migration Of Whatsapp Account from other platforms to BotPenguin.
        • 🔃Reconnect Whatsapp Bot
      • Instagram Chatbot
      • Facebook Chatbot
      • Telegram Chatbot
      • Microsoft Teams Bot
    • Chatflow Setup
      • Components In Chatflow
        • Request Information
        • Send Information
        • Trigger Actions
      • 3rd Party API in Chatflows
        • ChatGPT
        • Create your custom integration
        • Call external APIs in your chat flows
    • Train Your AI Chatbot
    • Install your Website Chatbot
      • Install Website Bot on WordPress
      • Install Website Chatbot on Custom Build Website
      • Install Website Chatbot on Squarespace
    • Bot Settings
      • Website Chatbot Settings
        • Design
        • General
        • Alerts
        • Triggers
        • User Access
        • Chat Window
        • AI settings
        • Transfer Chat to WhatsApp Functionality
      • Telegram Chatbot Settings
        • General
        • Telegram Profile
      • Instagram Chatbot Settings
      • Facebook Chatbot Settings
      • WhatApp Chatbot Settings
        • General
        • Alerts
        • WhatsApp Profile
      • AI Settings
    • Automation Settings
      • WhatsApp Template Setup
      • WhatsApp Catalog Setup
      • WhatsApp Flows (Forms) Setup
      • WhatsApp Broadcast Setup
      • WhatsApp Drip Campaigns Setup
      • Facebook Auto-Reply Features
    • 3rd Party App Integrations
      • Integrate BotPenguin with Microsoft Teams
      • Integrate BotPenguin with WooCommerce
      • Integrate BotPenguin with Capsule CRM
      • Integrate BotPenguin with Elevio CRM
      • Integrate BotPenguin with Close CRM
      • Integrate BotPenguin with CalendarHero CRM
      • Integrate BotPenguin with Extraaedge CRM
      • Integrate BotPenguin with Infobip CRM
      • Integrate BotPenguin with Google Sheets
      • Integrate BotPenguin with Google Task
      • Integrate BotPenguin with HelpShift CRM
      • Integrate BotPenguin with Zendesk CRM
      • Integrate BotPenguin with LeadSquared CRM
      • Integrate BotPenguin with Zoho Desk
      • Integrate BotPenguin with SupportBee CRM
      • Integrate BotPenguin with Wealthbox CRM
      • Integrate BotPenguin with SendInBlue
      • Integrate BotPenguin with Apptivo CRM
      • Integrate BotPenguin with Freshdesk CRM
      • Integrate BotPenguin with Help Desk CRM
      • Integrate BotPenguin with Helpcrunch CRM
      • Integrate BotPenguin with Jira CRM
      • Integrate BotPenguin with KarmaCRM
      • Integrate BotPenguin with LiveAgent CRM
      • Integrate BotPenguin with NetHunt CRM
      • Integrate BotPenguin with Plivo CRM
      • Integrate BotPenguin with Recurly CRM
      • Integrate BotPenguin with Shipway CRM
      • Integrate BotPenguin with Zoho Projects
      • Integrate BotPenguin with Zoho CRM
      • Integrate BotPenguin with TeamGate CRM
      • Integrate BotPenguin with Agile CRM
      • Integrate BotPenguin with Pipedrive
      • Integrate BotPenguin with Drip CRM
      • Integrate BotPenguin with Google Calendar
      • Integrate BotPenguin with Groove
      • Integrate BotPenguin with Helpdocs
      • Integrate BotPenguin with Bitrix24
      • Integrate BotPenguin with GetResponse
      • Integrate BotPenguin with Freshworks CRM
      • Integrate BotPenguin with Insightly CRM
      • Integrate BotPenguin with Nimble CRM
      • Integrate BotPenguin with Nutshell CRM
      • Integrate BotPenguin with OntraPort CRM
      • Integrate BotPenguin with HubSpot
      • Integrate BotPenguin with WebHoper
      • Integrate BotPenguin with EngageBay
      • Integrate BotPenguin with Frontapp
      • Integrate BotPenguin with Copper
      • Integrate BotPenguin with Salesflare
      • Integrate BotPenguin with No CRM
      • Integrate BotPenguin with Helprace
      • Integrate BotPenguin with Flowlu
      • Integrate BotPenguin with Pipeline
      • Integrate BotPenguin with Zingtree
      • Integrate BotPenguin with Salesforce CRM
      • Integrate BotPenguin with Chakra CRM
      • Integrate BotPenguin with SimplyBook
      • Integrate Botpenguin with Zoho CRM
      • Integrate Botpenguin with Zapier
      • Integrate BotPenguin with Twilio
      • Integrate BotPenguin with Make.com
    • Inbox & Chat
    • Analytics
    • Teams
      • Team
      • Business hours
      • Members
      • Role
      • Using Teams in Chatflow
    • Customer's Subscription
    • Notifications
    • Developers
    • Account Management
      • Account
      • Password
      • Delete Account
    • Frequently Asked Questions (FAQs)
      • ❓Product FAQs
        • Onboarding FAQs
        • Edit your chat flow
        • Bot Installation FAQs
        • ChatGPT FAQs
        • Inbox FAQs
        • Analytics FAQs
        • Chat Flow FAQs
        • Bot Settings FAQs
        • Profile, Team & Notifications FAQs
        • WhatsApp FAQs
        • Product Update FAQs
        • Subscription FAQs
      • 🙋‍♂️Partner's FAQs
        • Onboarding
        • Affiliate Partner
        • Implementation Partner
        • Whitelabel Partner
        • WhatsApp Whitelabel Partner
        • Add-ons FAQs
        • Subscription FAQs
        • LTD FAQs
    • Chatbot Troubleshooting
  • PLATFORM UPDATES & INFO
    • 🔥What's New
    • 🐞Raise Bugs
    • 📄New Feature Request
    • 🐧BotPenguin Roadmap
    • ✍️Platform Feedback
    • 🔹Uptime Status
  • Developer Documentation
    • Partner API Documentation
      • Setting up environment
      • Get Customer
      • Create Customer
      • Update Customer
      • Delete Customer
      • Get Customer API Token
      • Get Team Members (Custom Users)
      • Get Custom User (Team Member) Token
      • Embedding the BotPenguin Inbox in 3rd Party Apps
    • API Token & Keys
      • Get All Contacts
      • Getting Groups/Segments
      • Add WhatsApp Contact
      • Delete WhatsApp Contact
      • Website Contacts & Meta Data
  • WhatsApp Cloud API by Meta
    • Setting Up Your Facebook Business Manager
    • Meta Conversation Pricing for WhatsApp Cloud API
    • Update WhatsApp Bot Profile
    • Getting a Blue Tick(previously Green Tick) on WhatsApp
  • WhatsApp Cloud API
    • GET Templates List
    • POST WhatsApp Template Message
    • POST Send Message API
  • Other
    • Terms & Conditions of Service
    • Privacy Policy
    • Service Level Agreement
    • Incident Management and Response Process
Powered by GitBook
On this page
  • What is an external API?
  • Types of APIs
  • Workflows of using APIs in ChatFlow
  • Using APIs in the Chatflows

Was this helpful?

  1. Customer Platform Guidelines
  2. Chatflow Setup
  3. 3rd Party API in Chatflows

Call external APIs in your chat flows

This page contains information about how you can call external APIs in your chat flows.

PreviousCreate your custom integrationNextTrain Your AI Chatbot

Last updated 7 months ago

Was this helpful?

Currently, the API chat component is only being supported for WhatsApp Bot, Coming soon for the rest of the channels.

What is an external API?

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.

Types of APIs

There are several types of APIs, each serving specific purposes and use cases.

We are currently supporting the JSON-based RESTful APIs with the API key, JWT Token, or public APIs

Workflows of using APIs in ChatFlow

Here is the flow for using the APIs in the Chatflows

Using APIs in the Chatflows

To seamlessly integrate APIs into your chat flows in BotPenguin, follow these steps:

Step 1: Access the BotPenguin Dashboard

  • Log in to your BotPenguin account and access the dashboard.

Step 2: Navigate to the Developers Section

  • From the side navigation bar, locate and click on "More."

  • Within the "More" section, select "Developers."

Step 3: Prepare Custom Attributes

  • 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

Step 4: Add a New API

  • In the "Developers" section, find "Your APIs" and click on "Add API" at the top right corner.

Step 5: Configure Your API

  • 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 BotPenguin.

    • 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.

Step 6: Test the API

  • Proceed to "Manage API Response" and click on "Test" the API with actual values. This will help BotPenguin understand the API response structure.

Step 7: Map API Response to Custom Attributes

  • In the "Manage API Response" tab, you can map the API response variables to your BotPenguin custom attributes.

Step 8: Replace Actual Values

  • If required, replace the actual values in your API configuration with the custom attributes that you've mapped.

Step 9: Access Your Chatflow

  • Navigate to your Bot's chatflow by clicking on "Edit your Chatflow" under the "Bots" section.

Step 10: Select the "API" Chat Component

  • In the list of chat components, choose the "API" chat component.

Step 11: Call the API

  • In the right panel, call the API by selecting the API you've configured earlier by its name.

Step 12: Map the next Questions

  • 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.

Workflows of using APIs in ChatFlow