LogoLogo
  • 🖐️Welcome Aboard!
  • 📖Information
    • What is Autom Mate?
    • What is Autom?
    • Features of Autom Mate
    • Architecture of Autom Mate
  • 🤓Learn Autom Basics
  • 📚Libraries
    • Integration
      • Active Directory
      • AFAS
      • Autom Mate
      • Azure Active Directory
      • Azure DevOps
      • BambooHR
      • ChatGPT
      • ConnectWise
      • Database
      • Desktop Actions
      • EasyVista
      • Email
      • Exchange Web Server
      • Exact Online
      • Excel
      • Freshdesk
      • Freshservice
      • Ftp-Sftp
      • GitLab
      • Google Drive
      • Google Workspace
      • HaloITSM
      • Hubspot
      • Intune
      • Ivanti Service Manager
      • Jenkins
      • Jira Confluence
      • Jira Service Management
      • Jira Software
      • Lakeside
      • Lansweeper
      • ME ServiceDesk Plus
      • Microsoft Outlook Calendar
      • Microsoft SharePoint
      • Microsoft Teams
      • My ChatGPT
      • OCR
      • PDF
      • PowerShell
      • Python
      • RESTful Web Service
      • Salesforce
      • ServiceDesk Plus Cloud
      • ServiceNow
      • Slack
      • SolarWinds
      • Stripe
      • TOPdesk
      • Twilio
      • Twitch
      • VMware
      • WhatsApp
      • Word
      • X
      • Xurrent
    • Transform
      • Advanced Actions
      • Array
      • Base64
      • Condition
      • Cryptography
      • CSV
      • Data Table
      • Date
      • File
      • Folder
      • Number
      • Object
      • Repeatable
      • SSH
      • String
      • Text
    • Utility
      • Display Message
      • Grouping
      • Mate DB
      • Mate Drive
      • Time Management
    • Agentic AI (Beta Version)
      • Open AI (Beta Version)
  • 🎇Autom Features
    • Variables
    • Triggers
    • Data Manager
    • Debug
    • Stop Action
    • Function
    • Error Handling and Exception Management
    • Development Mode ( Dev Mode )
    • Business Impact Estimator
  • 🛰️Product Features
    • Dashboard
      • Dashboard
      • Monitoring
      • Alerts
    • Store
      • Autom Store
      • Library Store
    • My Environment
      • Mate Agent
      • Automs
      • Libraries
    • Management
      • User Management
        • Users
        • Roles
        • Forgot Password
      • Vault
      • Webhook & API
      • Alert Management
      • Queue
    • Create Autom
    • Settings
    • Time Zone Management in Autom Mate
  • 💾Installation Setup
    • System Requirements and Ports Configuration
    • Autom Center Installation
      • Autom Center Installation
      • Autom Center Update
    • Mate Agent Installation
      • Mate Agent Installation
      • Mate Agent Update
    • App Installations
      • MS Teams ChatBot Installation
    • Full Chain PFX File Creation Guide
  • 📔Release Notes
    • Amsterdam Edition
      • Amsterdam 3.2.9
      • Amsterdam 3.3.0
    • Boston Edition
      • Boston 4.0.0
      • Boston 4.1.0
      • Boston 4.2.0
      • Boston 4.3.0
        • Boston 4.3.1
        • Boston 4.3.2
        • Boston 4.3.3
        • Boston 4.3.4
        • Boston 4.3.5
        • Boston 4.3.6
        • Boston 4.3.7
      • Boston 4.4.0
  • 🎓Academy
    • 🎓Autom Mate Academy: Basics of Autom Mate
    • 🎓Mastering Automation with Autom Mate: From Workflow Creation
    • 🎓The Ultimate Autom Mate: Teams & Smart Integrations
  • 👔Autom Store & Use Cases
    • 🛒Autom Store Use Cases
    • 🖥️Use Cases
      • How to Create Bidirectional Connection Between JIRA and Xurrent to Open Requests or Tickets
      • Employee Onboarding Process Automation Using Autom Mate
  • ❓FAQ
    • ⚙️General Functionality
    • 🧩Integration Capabilities
    • Data Management and Validation
    • ⁉️Error Handling and Workflow Management
    • Automation Use Cases
    • Connectors and Triggers
    • Custom GPT Models
Powered by GitBook
On this page
  • Introduction
  • What is WhatsApp Business?
  • Autom Mate Integration with WhatsApp
  • Using the Integration
  • Credential Management
  • Credential Usage
  • How To Use Actions
  • List Scope
  • List Item
  • Dynamic List
  • Button Scope
  • Button Item
  • Text
  • Send Media
  • Additional Tips
  • Creating the WhatsApp Autom
  • Use Cases
  • FAQ

Was this helpful?

  1. Libraries
  2. Integration

WhatsApp

Introduction

This document provides a comprehensive guide on integrating Autom Mate with WhatsApp, allowing users to automate processes and interactions within the WhatsApp Business application. It outlines the process of defining and managing credentials within the Autom Mate Vault for secure authentication.

WhatsApp Business is a dedicated application designed for businesses to communicate with their customers via WhatsApp. Businesses can utilize features such as automated replies, predefined messages, chatbots, and dashboards to enhance customer interactions and streamline customer service tasks.

What is WhatsApp Business?

An overview of WhatsApp Business, emphasizing its role in facilitating business-to-customer communication and the features it offers.

Overview of WhatsApp Business: WhatsApp Business is an application tailored for businesses, enabling them to communicate with customers via WhatsApp. It provides tools such as automatic replies, predefined messages, chatbots, and dashboards to enhance customer engagement and support.

Key Features:

  • Automatic Replies

  • Predefined Messages

  • Chatbots

  • Dashboards

Autom Mate Integration with WhatsApp

Description of how Autom Mate seamlessly integrates with WhatsApp Business, offering actions to automate messaging, list creation, button responses, and media sharing.

Overview of Integration: Autom Mate enables users to perform various operations within the WhatsApp app. It provides actions such as creating structured lists, sending text messages, sharing media, and setting up interactive buttons for quick responses.

Prerequisites

  1. WhatsApp Business Account: You must have a WhatsApp Business Account. This is necessary for any integration with the WhatsApp Business API.

  2. Facebook Business Manager: Since 360 Dialog is an official WhatsApp Business API provider, you will need to have a Facebook Business Manager account that is verified. This is important for linking your WhatsApp number to the API.

  3. Phone Number: A dedicated phone number that hasn’t been used with WhatsApp Business API before. This number will be registered with your WhatsApp Business API profile.

  4. API Access: You need to apply for API access through 360 Dialog, which involves agreeing to specific terms of service and potentially undergoing a review process.

  5. Technical Setup: Understanding of API integration is crucial. You should be comfortable with concepts like webhooks, JSON formats, and HTTPS requests.

  6. Security Compliance: Ensure that your systems comply with WhatsApp’s and 360 Dialog’s security and data protection guidelines. This might involve implementing secure storage for authentication tokens and message content.

Using the Integration

Credential Management

Steps to define and manage credentials within the Autom Mate Vault for secure authentication in WhatsApp operations.

Usage:

  1. Navigate to the Autom Mate Vault section.

  2. Click on "Add New Credential" to define a new credential.

  3. Fill in the required fields:

    • Credential Name: Unique identifier for the credential.

    • Authentication Type: Method used for authentication (e.g., API Key, OAuth).

    • WhatsApp Business API Token: Token provided by WhatsApp Business API.

    • Additional Fields as required.

  4. Save the credential in the Autom Mate Vault for secure storage.

Credential Usage

Instructions on how to utilize credentials from the Autom Mate Vault in WhatsApp operations.

Usage:

  1. When setting up Autom Mate WhatsApp actions:

    • Select the option to use Vault-managed credentials.

    • Choose the desired credential from the Autom Mate Vault.

  2. Authenticate securely using the selected credential.

  3. Execute the WhatsApp operation with enhanced security and access control.

How To Use Actions

List Scope

Description: Allows creation of a structured list within a chat for organized information display.

Purpose: Organize information in an easily navigable format for users.

Usage:

  1. Select the "List Scope" action in Autom Mate.

  2. Choose to use Vault-managed credentials for authentication.

  3. Define the label, header, body, footer, and button text for the list.

  4. Add list items to populate the list with relevant information.

Inputs:

  • Label

  • Header

  • Body

  • Footer

  • Button Text

List Item

Description: Individual items within the list scope with specific details and actions.

Purpose: Provide detailed information and actions for each item in the list.

Usage:

  1. Select the "List Item" action in Autom Mate within a List Scope.

  2. Specify the label, title, description, and response for the list item.

Inputs:

  • Label

  • Title

  • Description

  • Response

Dynamic List

Description: A dynamically populated list from a data source.

Purpose: Fetch data from a source to create a list dynamically.

Usage:

  1. Select the "Dynamic List" action in Autom Mate.

  2. Choose to use Vault-managed credentials for authentication.

  3. Define the label, request URI, response title path, response description path, authentication method, HTTP method, header, and query params.

Inputs:

  • Label

  • Request URI

  • Response Title Path

  • Response Description Path

  • Authentication

  • Method

  • Header

  • Query Params

Button Scope

Description: Create a set of interactive buttons within a chat for quick replies or actions.

Purpose: Enable users to interact with predefined actions or responses.

Usage:

  1. Select the "Button Scope" action in Autom Mate.

  2. Choose to use Vault-managed credentials for authentication.

  3. Define the label, header, body, and footer for the button scope.

  4. Add button items to create interactive options for users.

Inputs:

  • Label

  • Header

  • Body

  • Footer

Button Item

Description: Individual buttons within the button scope with specific actions.

Purpose: Provide selectable options with defined responses or actions.

Usage:

  1. Select the "Button Item" action in Autom Mate within a Button Scope.

  2. Specify the label, title, and response for the button item.

Inputs:

  • Label

  • Title

  • Response

Text

Description: Send plain text messages within the chat.

Purpose: Share information or responses in text format.

Usage:

  1. Select the "Text" action in Autom Mate.

  2. Choose to use Vault-managed credentials for authentication.

  3. Enter the label and message text to send.

Inputs:

  • Label

  • Message Text

Send Media

Description: Send media such as images or videos within the chat.

Purpose: Share multimedia content with users.

Usage:

  1. Select the "Send Media" action in Autom Mate.

  2. Choose to use Vault-managed credentials for authentication.

  3. Specify the label, media type, link to the media, and optional caption.

Inputs:

  • Label

  • Media Type

  • Media Link

  • Caption


Additional Tips

Creating the WhatsApp Autom

When the user creates a new aurom for WhatsApp, we need to set the trigger type as “Webhook” to run it.

If there is an API key visible to you when you press the button, it means that the user you are logging in has already created it and you can skip it.

After creating the API key, you can put the Webhook as Trigger to your flow.

The Webhook that we see is a unique webhook address that Autom Mate generates. Now, we need to redirect the WhatsApp number to the autom that we created to be able to use the autom variables that we are putting inside.

  • Connecting 360 Dialog to the Autom

For connecting the 360 Dialog to the autom that is created, the user needs to "POST" the data of the Autom to 360 Dialog.

Steps:

  1. Create a new POST request.

  2. The Header is "D360-API-Key":"{your_api_key}"

  1. As body, put the below data as "raw".

    {
      "url": "{webhook_url_of_autom}"
    }
  1. Send the http request. The response should be "200 OK" and same with the step 5 data the user provided.

  2. If return is succes, now every message that sends to the WhatsApp number will be redirected to the autom.

  • Webhook Rule Defining

In WhatsApp, when the user writes anything to the chatbot there will be 3 actions triggering on the WhatsApp’s API side. Trigger for message sent, message delivered and message read.

Every trigger comes to our trigger condition because of the webhook already connected with our chatbot.

In the monitoring side of Autom Mate, if we look at the History section after sending a message to the chatbot we will see 1 Completed and 3 Failed as it shown on the below screenshot. This is because webhook only able to read the data that has a specific json field called “contacts” in it.

This situation is not an issue but will create unwanted number of logs to monitor in our system. To prevent it we need to create a rule from Management > Webhook API menu. In this menu we will press the “Add Rule” button and a pop-up comes on the screen to start the process.

In the Details page, we will define a name and description for our rule.

In the Rule page, we will define the condition to make our webhook work without flaws.

In our case, the rule should be like this:

Params = Body

Key = contacs

Operator = is exist

Status = 200

When we put all the rules, we are pressing the Add button at the end and pressing next to continue.

At the Add Autom side, you can choose the WhatsApp flows that you already created and when you select them and press add rule, the operation will be done.

Now every step is done and we can continue to building the flow itself.

Triggering the WhatsApp flow which is created

WhatsApp “sessions” will be initiated when a user writes to the WhatsApp number that we directed it’s API to our Webhook.

After the first message that is sent to the number, the Webhook will be triggered and the rest of the session will go through the flow that we created.

Building the WhatsApp flow

Under WhatsApp application, there are 7 different actions that we can work with in the flow.

  • Text

  • Button Scope

    • Button Item

  • List Scope

    • Dynamic List

    • List Item

  • Send Media

PreviousVMwareNextWord

Last updated 7 months ago

Was this helpful?

If the API key for the Autom Mate user was not created, there will be no API key at the end of the webhook URL and it won’t work because of it. For creating the API key, you need to press to the “?” icon on the left down part of web interface and choose “”.

Open the .

The url of the POST is:

,

📚
Postman
https://waba.360dialog.io/v1/configs/webhook
Use Cases
FAQ
API key generate
If the API key for the Autom Mate user was not created, there will be no API key at the end of the webhook URL and it won’t work because of it. For creating the API key, you need to press to the “?” icon on the left down part of web interface and choose “API key generate”.
Header, Body, Footer and Button Text will be shown to the user in the WhatsApp session. The Button Text will be a button that user can press on and see the list of items that we are fetching with the “Dynamic List” or “List Item” actions. A Header can be a maximum of 60 characters long. A Body can be a maximum of 1024 characters long. A Footer can be a maximum of 60 characters long. A Button Text can be a maximum of 20 characters long. Note: There has to be a List Item or Dynamic List inside of the scope for it to work on the WhatsApp session.
If the list that we want user to choose is not dynamic but has some certain items that is never going to change, we can manually configure what items that they can choose. A Title can be a maximum of 24 characters long. Only the “Title” on this action is mandatory and the response will give exactly what title is.
Button scope action is necessary to use button items on the flow that we are creating. In this action, “Header” and “Body” sections are mandatory to fill in. The “Footer” section is optional. Buttons cannot contain emojis. A Header can be a maximum of 60 characters long. A Body can be a maximum of 1024 characters long. A Footer can be a maximum of 60 characters long. Note: There has to be a Button Item inside of the scope for it to work on the WhatsApp session.
Inside the button scope, we can add maximum of 3 button items. Those actions have “Title” section inside of them and it will be shown to the user exactly as it’s written on the flow. Additionally, there is a default response on the action if it’s needed to get used in another part of the flow. All the button items will be in the same line at the flow and when user presses one of them in the WhatsApp session, the flow will keep continuing from there. So, the actions under other buttons will not run. A Title can be a maximum of 20 characters long. You can define unlimited length of characters but only the first 20 will be shown at the session.
Text action sends the message that you write inside of the “Message” as a response in the WhatsApp chat.The “Label” section defines what you are seeing in the flow’s action name in every WhatsApp action. The label value will not be shown to the user at WhatsApp session.If there is a scenario to ask a question to the user and use their response on the upcoming actions, the checkbox of “Is Question?” should be checked. With this way, there appears a string Response in the bottom of the Action Control Center.A text message can be a maximum of 4096 characters long
Header and request url usage
body of the request
The WhatsApp flow should not be run with the run button on the top of the flow building screen. This will cause Gateway issues. Instead, it should be triggered by writing to the chat bot every time. There is a “Reset Session” button on the left side of the flow building panel. This button will become active if there is any WhatsApp action in the flow. This button will reset all the sessions which are active on the moment.