Activechat Manual
  • What is Activechat?
  • New? Start here
    • The basics
    • Set up your first project
    • Install the chat widget
    • Upload the knowledge
    • Explore the CRM
    • AI-assisted live chat
      • How to set context for AI hints
    • Live chat mobile app
    • Build your first automation
  • Conversational AI
    • For Customer Service Teams
    • For Product Managers
    • For Innovation Teams
    • For Marketers
    • For e-commerce
    • For developers
  • Help Guides
    • Setting up your team
    • Managing conversations
      • Customer attributes
      • User tags and segments
      • Searching for specific users
      • Agent tags (live chat groups and queues)
      • Triggering live chat sessions from the bot
      • Notifications with the TRIGGER block
    • Managing knowledge
      • Uploading business data
      • Question answering and live chat hints
      • Fine-tuning the large language model
    • Natural language automation
    • Building automations visually
      • Customizing your welcome message
      • Adding new skills
      • Navigating skills
      • Copying skills and blocks
      • Handling errors
    • Improving your virtual agent
    • Using live chat AI hints
    • Customizing automatic website page messages
    • Tracking website actions
    • Facebook Ads automation
      • How to set up a Facebook ads bot
      • How to use buttons and quick replies in a Facebook ads chatbot
    • Lead generation
    • Zapier integrations
    • Customizing your project
      • How to customize the chat widget
      • How to customize the Facebook chat widget
      • How to change bot settings
    • Pricing guide
  • Fundamentals
    • Terminology
      • Intents and entities
      • Contexts
      • Skills and events
        • Built-in system skills
          • /start
          • /default
          • /_default_fallback
          • /_start_live_chat
          • /_page_visit
          • /_error
      • Conversation elements
        • Messages
        • Buttons
        • Quick replies
        • Galleries / carousels
    • Messaging channels
      • Website chat widget
        • Installation
        • Customization
        • Voice input
      • Chat widget landing page
      • Facebook Messenger
        • Connect your page
        • 24 hour rule
        • Message tags
        • Persistent menu
      • Telegram
      • Email
      • Twilio SMS automation
    • Intents and bot skills
    • Conversation insights
    • Grow tools
      • Landing pages
      • Messenger links and QR codes
    • Broadcasting
  • Visual builder reference
    • Sending messages
      • TEXT
      • LISTEN
      • IMAGE
      • MEDIA
      • GALLERY
      • FILE
      • EMAIL
      • SMS
      • LEAD
    • Triggering events
      • SEND
      • CATCH
      • TRIGGER
      • LIVE CHAT
    • Manipulating data
      • DATA
      • ADD TAG
      • REMOVE TAG
      • JSON
      • STATUS
      • VALIDATION
    • Conditional logic
      • SWITCH
    • Timers and delays
      • TIMER
      • WAITFOR
      • WAITUNTIL
    • E-commerce blocks
      • CATEGORY
      • PRODUCT
      • VARIATIONS
      • SIMILAR
      • UPSELLS
      • CROSSSELS
      • Shopping carts
        • ADD TO CART
        • UPDATE CART
        • SHOW CART
        • CLEAR CART
        • CREATE ORDER
    • Natural Language
      • NLP
    • System attributes
    • System events
  • Integrations
    • Google services
      • Connect your Google account
      • Google Sheets
        • Searching and updating Google Sheets data
        • Building galleries with Google Sheets data
      • Google Calendar
        • Searching for events
        • Creating and updating events
    • Shopify
    • WooCommerce
    • Dialogflow
      • Building an agent
      • Using entities
      • Slot filling
      • Context management
      • E-commerce NLP
Powered by GitBook
On this page
  • Example of the JSON block usage
  • Using JSON block with Zapier / Integromat

Was this helpful?

  1. Visual builder reference
  2. Manipulating data

JSON

PreviousREMOVE TAGNextSTATUS

Last updated 3 years ago

Was this helpful?

Bots that cannot connect to external APIs and integrate into business frameworks probably will stay nothing but a toy. To make your bot really useful for your customers we’ve developed an integration system through the JSON module.

You can also use this block to call external API endpoints (Zapier is a perfect example) and fetch data from these endpoints to your bot.

Example of the JSON block usage

Paste the external script address to the “URL” field in block settings and choose the calling method (GET or POST). Add parameters that you’d like to send with the call (either hard-coded or from ). If necessary, you can also add headers to JSON requests (for example, for authorization).

As a result, this block will save key-value pairs received in JSON response to user attributes and move on to the block that is connected to the SUCCESS tab. On any error, blocks connected to the ERROR button will be triggered.

Example of the JSON block usage

In the example above bot is collecting the user’s name, email address, and phone number and sends this information to Zapier webhook listener, so that it can be added to CRM or Google Sheets.

Let’s suppose that external script returns JSON of this structure (here’s an example from Zapier Webhooks integration):

After this call you will have new attributes in your chatbot: $status, $attempt, $id and $request_id. These values can be used in any other block since then (TEXT, DATA, SWITCH, etc).

Currently, Activechat supports plain JSON output with no nested objects. Objects and arrays will be supported soon.

Using JSON block with Zapier / Integromat

  • send data to Google Drive

  • send e-mails

  • push data to CRM

  • publish Twitter and Facebook posts

  • create tasks in Google Tasks

  • send conversion data to Facebook

  • make requests to Firebase and PostgresSQL

  • send SMS

  • …and do a thousand things more with Zapier.com

Example JSON response from an API endpoint

One of the most common use cases for the JSON block is Zapier or Integromat integration. Use to trigger Zaps that will be able to achieve multiple tasks:

Webhooks by Zapier
user attributes