Chatalog Help Centre
HomePricingBlogLogin
English
English
  • Welcome to chatalog
  • đŸ’ŦInstant Enquiry
  • â„šī¸Release Notes
    • 2025 Releases
    • 2024 Releases
    • 2023 Releases
  • ❓FAQs
  • 🔊Announcements
    • Temporarily Disable the Delete Message Template Function
  • 🔹Platform Setup
    • 🚩Things to note when setting up the platform
    • WhatsApp
      • WhatsApp Conversation Fees
      • Turn off WhatsApp Number Two-step verification
      • Submitting an eligible phone number for WhatsApp Business API
      • WhatsApp Business API Display Name Guideline
      • Applying for Official Business Account (Green Tick)
      • WhatsApp Business API Limitations
      • WhatsApp Broadcast Limit and Setup Business Profile
      • Regarding WhatsApp Business API being blocked
      • Export WhatsApp Conversations
      • WhatsApp Catalogue
        • Connect the catalogue to your number
      • WhatsApp Flow
    • Instagram
    • Facebook
    • WeChat
      • Customer Service Messages
    • LINE
  • 🔷Contact setup
    • Contact
      • Import, Export and Add Contact
      • Notes
      • Block/Unblock Contacts
      • Delete Contact
      • Contact List (WhatsApp)
      • Label Management
      • Contact activity
  • 🔷BROADCAST SETUP
    • Broadcast
    • Broadcast (WhatsApp)
      • Create or import a contact list for broadcast
      • Create a WhatsApp message template
      • Create a Carousel Template
      • How to Send WhatsApp Broadcast
      • Selective Display of Templates
    • Broadcast (Non-WhatsApp)
    • Broadcast - Recurring Notification (Facebook)
  • 🔹CRM Quickstarts
    • Messages
      • The status of the conversation and the chat box interface
      • Icon in the message
      • Inbox Permissions
      • Export Conversation
      • Auto message for assigning conversation
      • Import new contacts and open - individual import
      • Import new contacts and open - multiple imports
    • Basic Flow
      • First Direct Message, Ice Breaker, Story Mention
      • Setting up non-business hours
      • Flow management tools
      • Selective Display of Flows
    • Customized Flow
      • Flow Blocks
        • Flow template reference
          • Event reservation Flow
          • Subscription cancellation Flow
      • Flow Trigger
      • Assign Conversation
      • Custom Field and User Input Setup in Flow
      • Setting up Call API Block in Flow
      • Smart Delay
  • 🔷AI Tools
    • AI Tools
      • Manage projects for AI Reply from Document
      • AI Tools - AI Writer & Doc Reply
      • AI Writer & Consultant
      • AI Reply from Document Flow Block
      • AI Dialog Flow Block
        • How to write good prompts for your AI Dialog?
      • AI Funnel Flow Block
  • 🔷POST AUTO REPLY
    • Post Auto Reply
      • Post Auto Reply Setup
      • Post Auto Reply Setup - Multiple
      • Manage The Bot
      • Create an IG Live Bot
  • 🔹Settings
    • Upgrade Plan
    • Account Details
    • Two-factor authentication (2FA)
      • Enable 2FA in Settings (Owner Only)
      • Disable 2FA in Settings (Owner Only)
      • 2FA login on the mobile app
      • 2FA login on the web
    • User Management
      • Add Team Member
      • User Status
    • Team Management
      • Advanced Permission Settings (Beta)
    • Web Chat
      • Setting up Web Chat on wordpress
      • Setting up Web Chat on Shopify
      • Add WhatsApp button to your website that links to your WhatsApp Business account
    • Auto Follow-ups
    • Names Display
  • Supported Languages
Powered by GitBook
On this page
  • URL & Method
  • Customize Header
  • Customize the Body
  • Set your test variable
  • Test the Request
  • Save Responses as Variables
  • Response Routing
  1. CRM Quickstarts
  2. Customized Flow

Setting up Call API Block in Flow

PreviousCustom Field and User Input Setup in FlowNextSmart Delay

Last updated 1 year ago

Call API Block provides automated HTTP callback functions that you can use to perform an API request by various methods, including GET, POST, PUT, DELETE etc.

URL & Method

Choose a Request method and enter your URL endpoint of the external API.

You can make your URL dynamic by inserting variables into the path. For the user input variable that you set up in the flow, for example, it is called "order_num", you can call it with {{order_num}}. For custom fields, for a field called "membership", you can call it {{customFields.membership}}.

Customize Header

Headers in HTTP webhook requests are used to specify the purpose of the API or its content type.

It is optional to use headers. It is under Additional Settings and is turned off by default. Headers are set as key-value pairs.

e.g. key = Content-Type & value = application/json

Customize the Body

The body of the API request is added here. This is also optional and set as off by default. The body must always be in JSON format.

Formatting Tips:

  • Strings and Variables must be wrapped in quotes > {{name}}

  • A comma is needed between 2 key-value pairs > "Email": "{{email}}", "Name": "{{name}}"

  • If the variable is a custom field but not a default field (i.e. name, email, phone), for example the field name is membership, the format should be > “{{customFields.membership}}“

Set your test variable

Manually set your test variables by clicking "Add Variables".

Test the Request

You can test the API request by clicking on the 'Test the request' button.

Save Responses as Variables

You can also save the response of a request into variables or custom attributes. If your API response is a JSON with a key-value pair, you can store each of the values by passing the key name.

Storing Response Values that are Inside an Object:

If you want to store the response value that is inside an object, you need to use the objectkey.keyname format.

Example: if you want to store the userId, you have to use Result.userId in the "Entire response Body" above

{ 
    "Result": { 
        "userId": "xxxxx", 
        "PhoneNumber": "xxxxxx", 
        "PurchaseHistory": null, 
    }
}

Storing Responses that are Inside an Array of the Object:

If you want to store the response value that is inside an Array of an object, you need to use the $.[0].objectkey.keyname[0].value format

Example: if you want to store shipping_status, you have to use $.[0].order_tracking.shipment_track[0].shipping_status in the "Entire response Body" above

[
    {
        "order_tracking": {
            "track_status":0,
            "shipment_track" : [
                {
                    "id":123342515,
                    "shipping_status":"On the way"
                }
            ]
        }
    }
]

Response Routing

You can use response routing to split your flow according to response status codes. By default each Call API Block has "success" and "failed" node. You can optionally add custom status code as you need.

🔹