How can we help?
< All Topics
Print

How Triggers & Actions work?

Botbaba gives you the ability to select triggers and associate them with a series of actions.

Triggers

Triggers are events that occur in your experience while executing the chatbot. These events can be:
• Payment Success:
The trigger executes when the payment is made successfully using botbaba’s native payment gateway integrations.
 Payment Failed:
The trigger executes when the payment is not made successfully using botbaba’s native payment gateway integrations.
• Chat Complete:
The trigger executes when the chat is completed.
• Chat Incomplete:
The trigger executes when the chat is not completed for 30 mins.
• Cart Abandon:
The trigger executes when visitors add items to the cart, but exit without completing the purchase.
Note: Cart Abandon is triggered after 30 minutes

Additionally, these events can be triggered manually based on the need. A special trigger Manual address the manual event.

Actions

Actions are events you can force to occur in reaction to a trigger.

Actions in botbaba:

  • HTTP Request
  • Send WhatsApp Message
  • Send Telegram Message
  • Send Email

Add Triggers & Actions in Botbaba

Note: You can use Dynamic (the user-defined variables inside a bot flow) and Global Variables in any of the Actions

Step 1: Choose Triggers and Actions

Click on ACTIONS, and select Triggers & Actions. It opens the Triggers and Actions page.

Step 2: Add new Triggers and Actions

Click on ADD NEW, it will open the page to add an action.

Step 3: Draft action and trigger

Action Name:
Give an appropriate action name to your Trigger.

Trigger:
Select the trigger on which you want to perform some action from the dropdown list.

Active:
Checked on the option to make the option active.

Add Action:

Select an action you want to perform when an event occurs.

Then click on Add Action and fill in the details

HTTP Request

Enter the endpoint URL.
Place JSON data in the body.
Add Request Headers if any.
Click on Save Action and your trigger is created successfully.

WhatsApp Message

This action works for 360Dialog Users, whose key is integrated with the WhatsApp bot already.

Enter the number(s) you want to send the message on

Write The action message you want to send.

Select the block from where you want to resume the chat after the WhatsApp Message is sent.

Click on Save Action and your trigger is created successfully.

Telegram Message

Enter the chat ID on which you want to send the notification on.

Token – “bot1115233676:AAGGvBlnPI7xxxxxxxxxxxxxxxxxxxxxx”

  • Every telegram bot has a unique Bot identification Id

Write The action message you want to send.

Click on Save Action and your trigger is created successfully.

Send Email

Enter the Email ID on which you want to send the Email when a specific trigger occurs.

Enter the Subject of the Email which you want to send.

Write the Body of the Email.

Click on Save Action and your trigger is created successfully.

Was this article helpful?
0.5 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 100%
How can we improve this article?
Previous Passing external values to the bot using the bot URL
Next How to obtain auth token or API key?
Table of Contents