Chat Flow User Guide
User GuidesRelease NotesFAQsSupport
5.52.0
5.52.0
  • 🏠Return to Home Page
  • πŸ”ŽOverview
    • Chat Flow Overview
    • Quick Start
  • πŸͺ›Configuration
    • Access Chat Flow
    • Configure a route
    • Add an API integration
    • Set up keywords
    • Set up session timeout events
    • Manage your workflow assets
  • βœ…Channel Capabilities
    • Configure channel display type
    • Use WhatsApp with Chat Flow
      • Initiate WhatsApp conversations
      • Send WhatsApp message templates
      • WhatsApp Interactive Messages
      • WhatsApp Commerce Messages
    • Use Apple Messaging for Business with Chat Flow
      • Apple Interactive Messages
      • Apple User-Facing Nodes
  • πŸ”ƒWorkflow management
    • Build a workflow
      • Add a workflow
      • Delete and restore nodes
      • Repeat a step in a workflow
      • Dynamic API Workflows
    • Edit/delete a workflow
    • Search, Find & Replace in a workflow
    • Duplicate, rename, or move a workflow
    • Preview workflows
      • Preview flow on different channels
      • Preview logs
    • Approve and deploy workflows
      • View flow details
      • Submit a workflow for approval
      • Approve/decline a workflow
      • Deploy a workflow to production
  • 😎User-Facing Nodes
    • Display nodes
      • Contact Sending
      • External Link
      • Location sharing
      • Media
      • OTP Menu
      • Rich Link
      • Text Display
    • Product nodes
      • Clickatell AI node
      • Chat Desk node
    • Input nodes
      • Contact Receiving
      • OAuth Request
      • Request Input
      • Send Form
      • Time Picker
    • Commerce
      • Chat 2 Pay
      • Multi Product
    • Branch/logic split
      • Dynamic List
        • Apply patterns, custom indexes, filtering, and exclusions
      • Menu
      • Multiple Choice Input
  • 🎬Action Nodes
    • API Integration node
    • Calculate
    • Date Format
    • Display List
    • Encrypt
    • Is Empty
    • Is Null
    • Number Format
    • Regular Expression
    • Remap
    • Send Template
    • Set Variable
    • Switch Case
    • Wait For Callback
    • Opt-Out nodes
  • πŸ”—Integrations
    • Integration nodes
  • πŸ”‘Variable management
  • Using system variables
  • Referring to variables
  • πŸ“ŠReporting & Analytics
    • Analytics Settings
    • Collections & reporting labels
    • Clickatell Portal Reports
  • ❗System error codes
    • System Error Codes
  • πŸ’‘Help & Information
    • What's New? 🎈
    • Release Notes
    • FAQs
    • Return to Home Page
Powered by GitBook
LogoLogo

Β© Copyright 2024 Clickatell. All rights reserved.

On this page
  • Adding a header, query parameter, or request body
  • Header
  • Query parameters
  • Body
  • Adding a new result
  • Responses

Was this helpful?

  1. Action Nodes

API Integration node

Last updated 1 month ago

Was this helpful?

The API Integration action node allows you to call an external API using HTTP.

The API can be from a 3rd-party organization or from within your own organization.

Endpoints must be set up before you can use the API Integration action node to connect to an API from within a workflow.

Refer to the section for more information on how to do this.

An API Integration node can be used to invoke an HTTP GET or POST, with headers, query parameters, and (in the case of POST) a request body.

Adding a header, query parameter, or request body

You can add new headers and add new query parameters according to the API's behavior.

Header

Header parameters are included in the request header. This is a combination of a key and value pair. Usually, the header just includes authorization parameters that are common across endpoints.

Adding headers on the API Integrations screen allows the flow-builder to configure the API keys only once on the API level, instead of updating them on each API Integration node, which is especially time-saving when testing.

Header name

Description

Examples

Accept

Specifies the content types that are valid in the response message. If the server cannot respond with the requested content type, the 406 Not Acceptable HTTP status message is returned.

application/xml application/json

Content-Type

Indicates the content type that is used in the body of the request. The supported content type is XML.

application/xml

Authorization

Authorization should contain your unique API key

<type> <credentials>

Query parameters

The query parameters are sometimes referred to as optional parameters and are separated from the hierarchical parameters by the question mark. These parameters are non-unique, i.e. you can specify any one parameter multiple times.

The exact syntax of the actual parameters is not generically defined, but is normally a sequence of key-value pairs (separated by an equal sign), with the sequence separated by either a semicolon or an ampersand.

Body

Frequently, with POST requests (where you’re creating something), you submit a JSON object in the request body. This JSON object may be a lengthy list of key-value pairs with multiple levels of nesting.

For example, the endpoint may be something simple, such as /product/{productId}. But in the body of the request, you might include a JSON object with many key-value pairs.

Adding a new result

You can add a new result for each possible API response that may be returned. Specify the relevant step or flow that you want to route the end-user to in each case.

  • 200 – The request was successfully completed

  • 400 – Bad request

  • 401 – Unauthorized

  • 404 – Not found

  • 503 – Service unavailable

Note: In addition to the default responses (see below), you need to add at least the successful result (200). Other results can be added if required by the API.

Responses

After adding an API Integration node there will be four default responses that need to be mapped with response messages:

  • other - Catch all non-specified response codes or HTTP response codes

  • error - Catch catastrophic errors

  • timeout - Catch API is not responding within time frame

  • max-connection - Catch max pool connections

Note: All responses mentioned above have to be written with lower case letters, else you will receive an error. Do not remove these default responses.

Note: headers can also be (optionally) specified in the . If headers are added in the API Integration nodes as well as in the API Integrations section, ensure that they are the same otherwise your calls will fail.

🎬
API Integration section
API Integration
Setup of an API Integration node
Example flow containing API Integration node