Trigger Actions
Contains information about the chat components in trigger actions.
1. Live Chat
It is used to initiate live chat with your available agent.
It will create a live chat request.
You can enter a text message to inform the user that the request has been triggered.
By clicking on "Manage Team," you will be redirected to the Team's Section, where you can assign roles and manage your team.
Use Case: In case you want to connect the user with a live agent, this component is used to initiate a live chat request.

2. If-Else Branch:
Introduces logic-based decision-making in the chatflow.
Branches the chat based on various parameters.
Users can set conditions by clicking "Please choose one" and selecting a decision rule.
Additional If-Else branches can be added using the "Add If/Else Branch" button.

The available "Condition On" options include:
Visitor Response – Based on the response given by the user to the chat message.
Custom Attribute – Evaluates the values of custom attributes created by the user.
Contact Property – Includes standard properties such as name, phone number, email, etc.
Chat Property – Considers chat-based properties such as tags, status, or weekday.
Team Availability – Checks whether a team member is currently available of a particular team.
Business Hour Availability – Determines if the chat occurs within predefined business hours as specified by user.
Conditions can be compared against fixed values using the following operators:
Equals (Exactly matches the given value)
Not Equals (Does not match the given value)
Is Any Of (Matches any value from a predefined list)
Is Not Any Of (Does not match any value from a predefined list)
The value for comparison is entered in the final input box, where users can also incorporate dynamic elements (e.g., user name) or custom attributes by using the "/" symbol.
Additionally, users can define OR conditions using the "Add OR Condition" option. This allows for multiple conditions to be evaluated, ensuring flexibility even if the first condition is false.
Finally, users must select the next message to determine the chatflow's progression after a condition is met.
Use Case: In case you want the conversation to change based on user input or conditions, this component is used.

3. AI Agent (Previous ChatGPT)
It is used to trigger AI in chat flow.
You can enter the first message that will be sent before starting the AI-generated questions.
Select the number of queries to be resolved using AI.
If the query suggestion box is checked, you must provide up to 3 chat suggestions to be used initially.
After that, the AI Agent will provide query suggestions based on the prompt you enter.
You can also train your AI, and the query suggestions and replies will be based on that training.
Integrate your preferred LLM directly from here using the "AI Provider Integration Required" box

4. Redirect:
The "Redirect" component allows for the chat to be transferred between the several flows that the user makes:
You can select the chatflow to redirect to through the drop-down menu and selecting the desired chat.
Upon reaching this component, the chat will go to the starting point of the selected chat.
5. Payment
The Payment Component allows your chatbot to collect payments from users directly within the chat flow. It provides a smooth and secure way to accept payments for products, services, subscriptions, or donations without redirecting users to external pages.
Use case:
Collect payments via supported payment gateways (Razorpay, Stripe, PayPal, etc.).
Accept both one-time and recurring payments.
Send payment links, invoices, or QR codes directly in chat.
Track payment status (success, failure, or pending).
Customize messages and instructions for a personalized experience.
How to Use
Add the Payment Component
Open your bot flow in BotPenguin.
Drag and drop the Payment component where you want to collect payment.
Select Payment Method: Choose the payment service we are going to use. You have the option to choose between
All Pay
RazorPay
Peach Payments
Telr Pay
Tilo Pay
Make sure to go to the third party integrations and integrate the chosen method in the bot as well! Else, the payment may through unexpected errors.
Select Currency: Select the currency of you choice from the dropdown.
Payment amount: Enter the amount that needs to be paid. If the amount is variable, we recommend you create a custom attribute that takes in the amount form the user, and use that here.
Choosing Flows: Choose the flows to redirect to when the payment is successful and unsuccessful.
And that's it! Once you configured the payment gateway as well in the "Third Party Applications", you can start using the "Payments Component" just like any other component.
Customize User Message
Compose the message that will be sent to the user along with the payment request.
Example: “Hello [User Name], please complete your payment of ₹500 to confirm your order.”
Set Payment Actions
On Payment Success: Define what happens after a successful payment (e.g., send a confirmation, trigger next component).
On Payment Failure: Set fallback actions (e.g., retry, notify admin, or provide alternative instructions).
Test Your Payment Flow
Test your chatbot using sandbox mode or real accounts to ensure payments are processed correctly and confirmations are sent.

6. Whatsapp Payment
The WhatsApp Payment Component allows your chatbot to collect payments directly from users within WhatsApp. This enables seamless transactions without redirecting users to external websites, improving conversion rates and user experience.
Use Case:
Collect payments via supported payment gateways integrated with WhatsApp.
Send payment links or QR codes directly in chat.
Track payment status in real-time.
Customizable messages and instructions for users.
Supports multiple currencies (depending on your payment gateway setup).
How to Use
Adding a Whatsapp Payments step
In the left panel, open the Trigger Action section.
Drag the “Whatsapp Payments” block into your flow where you want to ask for payment.
Place it after any message that explains the product, price, or offer so users know what they are paying for.
Customizing the payment message
Click the “Whatsapp Payments” block in the middle canvas to open its settings on the right.
In the Message field, type the text you want users to see (for example, “Complete your payment to confirm your order”).
Optionally add an image URL or upload an image (like a product photo or logo) to show with the payment message.
Linking a payment configuration
In the right panel, open the “Select Payment Configuration” dropdown.
Choose the payment configuration you have already set up in BotPenguin (gateway, amount logic, etc.).
This configuration controls how the payment link or button is generated and processed inside WhatsApp.
Routing after payment
Use the “Go to next message” dropdown (bottom-right panel) to pick what message the bot should send after this payment step.
Typical next messages include: order confirmation, failure/retry instructions, or a thank-you message.

5. Assign Chat
It is used to automatically assign live chat request among team members.
You can either assign the task to a team member by selecting their name.
or
You can assign it by department, select the department, and set the assignment logic to "Round Robin," where each team member will be automatically assigned a live chat request one by one in a round.
You can choose not to assign tasks to offline agents and assign them only during business hours.
Use Case: In case you want to automatically assign live chat requests to team members, this component is used.

Last updated
Was this helpful?




