ChatBot

The ChatBot modules allow you to watch, create, update, list, retrieve, and delete the users and stories in your ChatBot account.

Getting Started with ChatBot

Prerequisites

  • A ChatBot account

In order to use ChatBot with Integromat, it is necessary to have a ChatBot account. If you do not have one, you can create a ChatBot account at accounts.chatbot.com/signup?.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting ChatBot to Integromat

To connect your ChatBot account to Integromat you need to obtain the Developer Access Token from your ChatBot account and insert it in the Create a connection dialog in the Integromat module.

1. Log in to your ChatBot account and open your Dashboard.

2. Click Your Profile Icon > Settings > API Keys.

EVbso4PleX.gif

3. Copy the Developer Access Token to your clipboard.

chatbot1.png

4. Go to Integromat and open the ChatBot module's Create a connection dialog.

0bZ1NGs7g9.gif

5. In the Connection name field, enter a name for the connection.

6. In the Access Token field, enter the token copied in step 3, and click Continue.

The connection has been established.

User

Search User

Searches for users or lists them all.

Connection Establish a connection to your ChatBot account.
After Select the User ID to search the user listed after the specified user.
Field Select the option to sort the users:
  • Created At
  • Last Seen
Order Select the order in which you want to sort the users:
  • Ascending
  • Descending
Match Select the option to match the users:
  • All
  • Any
Type Select the user type:
  • Segment
  • Customer User ID
  • Default Email
  • Default Name
  • Attribute
  • Banned
  • Created At
  • Last Seen At
Limit Set the maximum number of users Integromat should return during one scenario execution cycle.

Get a User

Returns details of a user-specified by ID.

Connection Establish a connection to your ChatBot account.
User ID Select the User ID whose details you want to retrieve.

Create a User

Creates a new user.

Connection Establish a connection to your ChatBot account.
Do you want to provide user ID manually or to be generated automatically? Select the option to create the user:
  • Manually
  • Automatically
Custom User ID Enter a unique User ID for the new user.
Email Enter the user's email address.
Segments Enter the segment details for the user.
Username Enter a username.
Name Enter the user's name.
URL Enter the URL address to the user's website.
Avatar Enter the URL address of the user's profile picture.
Langauge Enter the language applicable to the user.
Timezone

Select the user's timezone.

Gender Select the user's gender:
  • Male
  • Female
  • Other
IP Address Enter the user's IP address.
City Enter the user's city name.
Region Enter the user's region or province or state name.
Country Enter the user's country name.
Referrer Enter the reference details of the user.
Custom Fields Add the custom field key and its values.

Update a User

Updates a user-specified by ID.

Connection Establish a connection to your ChatBot account.
User ID Select the User ID whose details you want to update.
Username Enter a username for the user.
Email Enter the user's email address.
Name Enter the user's name.
URL Enter the URL address of the user's website.
Avatar Enter the URL address of the user's profile picture.
Language Enter the language applicable to the user.
Timezone Select the user's timezone.
Gender Select the user's gender:
  • Male
  • Female
  • Other
IP Address Enter the user's IP address.
City Enter the user's city name.
Region Enter the user's region or province or state name.
Country Enter the user's country name.
Referrer Enter the reference details of the user.
Custom Fields Add the custom field key and its values.

Ban/Unban a User

Changes ban status of a user-specified by ID.

Connection Establish a connection to your ChatBot account.
User ID Select the User ID you want to ban or unban.
Operation Type Select the action to perform:
  • Ban User
  • Unban User

Story

List Stories

Returns a list of all stories.

Connection Establish a connection to your ChatBot account.
Limit Set the maximum number of stories Integromat should return during one scenario execution cycle.

Get a Story

Returns details of a story specified by ID.

Connection Establish a connection to your ChatBot account.
Story ID Select the Story ID whose details you want to retrieve.

Create a Story

Creates a new story.

Connection Establish a connection to your ChatBot account.
Name Enter the name of the story
Description Enter the details of the story.

Update a Story

Updates a story specified by ID.

Connection Establish a connection to your ChatBot account.
Story ID Select the Story ID whose details you want to retrieve.
Name Enter the name of the story
Description Enter the details of the story.

Delete a Story

Removes a story specified by ID.

Connection Establish a connection to your ChatBot account.
Story ID Select the Story ID whose details you want to delete.

Message

Watch New Messages

Triggers when a user sends a specified message into a chat.

You do not have to add the webhooks in the ChatBot as it is automatically done for you once you add and save an instant trigger module to your scenario.
Webhook Name Enter a name for the webhook.
Connection Establish a connection to your ChatBot account.
Webhook Name Enter the webhook name that appears in the ChatBot UI.

Other

Make an API Call

Performs an arbitrary authorized API call.

Connection Establish a connection to your ChatBot account.
URL

Enter a path relative to https://api.chatbot.com/. For example: /users

For the list of available endpoints, refer to the ChatBot API Documentation.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

Headers Enter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query String Enter the request query string.
Body Enter the body content for your API call.

Example of Use - List Stories

The following API call returns all the stories from your ChatBot account:

URL:
/stories

Method:
GET

chatbot3.png

Matches of the search can be found in the module's Output under Bundle > Body
In our example, 3 stories were returned:

chatbot2.png

 

Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.