# Bots

<figure><img src="https://1716777396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8RAnu4FDDi19J83WzSNX%2Fuploads%2FHBYSBkyncCFEPENiUKLw%2Fimage.png?alt=media&#x26;token=c6c2ce16-192b-4aaa-b3bc-8f4cdb3bf874" alt=""><figcaption></figcaption></figure>

The **Bots** section in the WhatsApp Official Cloud API Chat & Marketing module for Perfex CRM provides a list of automated bots configured to interact with leads or clients based on specific triggers.

#### Key Columns Explained:

* **Name**: Name of the bot (e.g., "Respuesta").
* **Bot Reply Type**: Specifies the type of bot (e.g., "Message Bot").
* **Trigger ON**: Keyword or phrase that activates the bot (e.g., "texttest").
* **Relation Type**: The target audience (e.g., "Leads").
* **Trigger Condition**: Defines when the bot activates (e.g., "On Exact Match").
* **Active**: Toggle to enable or disable the bot.
* **Sending Count**: Shows how many times the bot has sent responses.
* **Actions**: Icons to edit or delete the bot configuration.

#### Buttons:

* **Create Bot**: Opens the form to create a new bot with custom settings.
* **Export**: Allows exporting bot data for records or analysis.
* **Search**: Provides quick filtering to find specific bots by name or keyword.\


This section serves as the main interface for managing and monitoring bot interactions in the WhatsApp module, helping automate customer engagement and improve CRM efficiency.

<figure><img src="https://1716777396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8RAnu4FDDi19J83WzSNX%2Fuploads%2FZrJo2mADNgFkbTvb9EPj%2FScreenshot_08.png?alt=media&#x26;token=593c26b9-a2a7-498f-8481-4698f83627ac" alt=""><figcaption></figcaption></figure>

Main Fields:

* **Bot Name**: Define a unique name for the bot.
* **Bot Reply Type**: Choose the type of response (e.g., text, media).
* **Relation Type**: Set the bot's target audience (e.g., Leads, Clients).
* **Trigger ON**: Specify a condition for activation, like a keyword or exact match.

The **Bot Reply Type** options in the WhatsApp module for Perfex CRM define how the bot responds to customer interactions. Here are the main types:

* **Message Bot**: Sends plain text responses.
* **Template Bot**: Uses predefined templates with images, buttons, etc.
* **Menu Bot**: Presents a selectable menu of options.
* **Flow Bot (FlowBuilder)**: Guides users through multi-step options.
* **Media Bot**: Responds with media files.
* **Location Bot**: Shares location details.
* **Review Bot**: Provides ratings about services/products.
* **Interactive Buttons**: Offers Yes/No choices.
* **List Bot**: Provides a list of options.
* **Sticker, Quick Reply, and Contact Bots**: Send stickers, instant replies, or contact info.

Some are labeled "Coming Soon" for future features.

Each bot type serves different interaction needs, from simple replies to complex guided flows.

<figure><img src="https://1716777396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8RAnu4FDDi19J83WzSNX%2Fuploads%2F8bCCwHx4MHJTjcxTVkHD%2Fimage.png?alt=media&#x26;token=1571f737-2949-48d7-b580-aad2dbde564a" alt=""><figcaption></figcaption></figure>

**Trigger on**

1. **On Exact Match**: The bot responds only if the user’s message exactly matches the trigger word or phrase. For example, if the trigger is "help," the bot replies only when the user types "help" and nothing else.
2. **When Message Contains**: The bot responds if the user's message contains the trigger word, even as part of a longer message. For instance, if "support" is the trigger, the bot replies to messages like "I need support with my account."
3. **When Client Sends the First Message**: The bot activates only when the client initiates the conversation. It’s useful for sending a welcome message, like "Hello! How can I assist you today?"
4. **On Keyword Match**: The bot responds to any message containing the specified keywords, allowing for multiple trigger words. For example, if the keywords are "urgent" or "help," the bot will respond to messages containing either.
5. **Within Office Time Range**: The bot responds only if the message is received within predefined office hours, such as 9:00 AM to 5:00 PM. Messages received outside these hours won't trigger the bot.
6. **Out of Office Time Range**: The bot activates if the message is received outside of specified office hours. This can be used to send an "Office Closed" message, informing the client that they’ll be assisted during working hours.
7. **First Message in Session**: The bot responds to the first message the client sends within a specified period, such as 24 hours. This prevents repeated responses to follow-up messages in the same session.



### Currently available bot types:

<div><figure><img src="https://1716777396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8RAnu4FDDi19J83WzSNX%2Fuploads%2Fos8lesEhE0pQ5VeShmXC%2FScreenshot_11.png?alt=media&#x26;token=a3bae8f6-80fc-4ebb-87f5-1f3f80f85444" alt=""><figcaption></figcaption></figure> <figure><img src="https://1716777396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8RAnu4FDDi19J83WzSNX%2Fuploads%2FYHuvws4mRlFC069cN2sO%2FScreenshot_09.png?alt=media&#x26;token=88321da8-92b8-45fb-b6f8-974bc08a3f26" alt=""><figcaption></figcaption></figure> <figure><img src="https://1716777396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8RAnu4FDDi19J83WzSNX%2Fuploads%2FM3qQ8o7dIEx6dPhhDmds%2FScreenshot_10.png?alt=media&#x26;token=483fea86-89c7-416b-94af-885d186229bb" alt=""><figcaption></figcaption></figure></div>
