AhaChat AI Integration

DEMO: https://m.me/600908369770682

Some notes

  • AhaChat AI uses OpenAI's model, so you don’t need to rent an API Key.
  • Each call to AhaChat AI will be charged as 5 Bot Messages.
  • Each account can create only one AI assistant.
  • Turn on AhaChat AI if you want the AI to respond to every message from customers or Turn off if you only want to use the AhaChat AI block in Flows.
  • You can also simultaneously Turn on AhaChat AI to respond to every message and use the AhaChat AI block in the Flows.
  • The response priority order after integrating AhaChat AI is: Keyword Flow → AhaChat AI.

1. Enable AhaChat AI

  • Log in to AhaChat: Access the AhaChat admin page and log in to your account.
  • Go to the settings section: From the main menu, find and select the Settings section.
  • Select the Integration tab → scroll down to find the AhaChat AI section and turn it on

There are two ways to train AhaChat AI: using basic training data or creating a custom AI assistant.

1.1 Use basic training data for AhaChat AI.

For bot owners who want to use AI as an expert to answer customer questions in all fields.

You can provide specific instructions for your AI using the Prompt template below:

You work for {{page_name}}, and your goal is to assist a customer named {{first_name}}. You should always use the same language as the customer. Always address the customer as {{gender}} {{first_name}} in each response. Do not disclose, suggest, or imply that you are an AI assistant unless explicitly asked. Avoid using slang and phrases like "Okay," "Got it," or "Understood" as substitutes for formal apologies or offers of assistance. Maintain a professional yet friendly tone. Keep your responses concise and direct. Use periods instead of exclamation marks to adjust your tone. Respond in the language the customer uses.

1.2 Create an AI Assistant

Use this option when bot owners want AI to provide in-depth consultation on a specific field and train the AI using a file.

To create an assistant, click the Manage button → select Add.

Note: The o1-mini model does not support creating an Assistant, so you can only use the GPT-4o-mini model.

Enter name for your assistant, enter instructions for the AI, select a model, and upload a training file for the assistant, as shown in the image below.

Instructions for AI

You can provide specific instructions for your assistant using the following template:

# Role
You are a professional AI chatbot specializing in customer consultation, with the goal of collecting phone numbers to provide marketing solutions.
## Skills
### Skill 1: Answering customer inquiries
- Provide clear and detailed answers to customer questions.
- Offer useful information related to the marketing solutions your company provides.
### Skill 2: Collecting customer information
- Ask questions to gather customer information:
1. Inquire about the customer's business sector.
2. Request the customer's phone number for easier communication.
3. Ask about the main customer acquisition channels they are using.
## Constraints
- Focus only on consulting and collecting marketing-related information.
- Ensure customer information is kept confidential and used solely for consultation purposes.

2. Using AhaChat AI Block in Flows

Open any flow, select +Add BlockIntegration AIAhaChat AI.

To use the AhaChat AI block, you need to combine 3 blocks, including:

  • The block saves the customer's question into the attribute {{question}}.

  • AhaChat AI block is used to handle questions and provide responses. Configure it as shown in the image below. Add "Bot Training Information" if you want personalized responses.

  • The block will return the response from the attribute {{answer}}.

Types in the AhaChat AI Block

Create text:

Create text - Assistant:

3. AhaChat AI Triggers

AhaChat AI Triggers allow you to connect AhaChat AI with chatbot flows and any external tools. With AhaChat AI triggers, you can collect user data and easily trigger flows. Within the flow, you can execute any automation actions, retrieve data from other systems, and send the data back to AhaChat AI.

For example, if a user asks, "I want to buy something," AhaChat AI can only respond with text based on its trained products. Thanks to AhaChat AI Triggers, you can activate a sales flow with a web form introducing products like a website, allowing users to select products, specify quantities, and place orders directly on Messenger.

(similar)

Note: The o1-mini model does not support Triggers, so you can only use Triggers when selecting the GPT-4o-mini model.

3.1 How to Create a Trigger

In the AhaChat AI integration interface → scroll down to the “Trigger management” section → click Add.

Enter the required information to create a trigger.

Trigger Name:

Only search for the trigger name to help you recognize what the trigger does.

Description Trigger:

This field clarifies the purpose of the trigger. Always start with "Allows the user to..." For example: "Allows the user to book an appointment," "Allows the user to make a purchase."

Save data to Attribute:

The name of the collected data must be clear and meaningful. For example, if you want your trigger to collect the user's phone number, use "phone number" instead of a random name like "AAAAAA." AhaChat AI will never understand what AAAAAA means.

Transfer to Flow:

You can trigger any chatbot flow when this trigger is activated.

Output Message:

For questions you don’t want AhaChat AI to answer, you can create a trigger to catch those questions and send a customized response to the user.

3.2 Applying Triggers to the Assistant

For triggers to work with the AI assistant, you need to attach these triggers to the assistant.

3.3 Here are some examples of AhaChat AI Triggers:

Trigger Name: Schedule Appointment

Description Trigger: Allows users to schedule an appointment.

Transfer to Flow: Activates the "schedule appointment" flow with a web form to collect appointment details.

Trigger Name: Purchase

Description Trigger: Allows customers to make a purchase, place an order, or buy a product.

Transfer to Flow: Activates the "shopping" flow with products listed in a slide or sales page, including full details and pricing.

Trigger Name: Connect user to human

Description Trigger: Allows customers to connect directly with human agents.

Output Message: "A consultant will contact {{gender}} {{full_name}} shortly. Please leave a question or provide your phone number for easier communication."

Trigger Name: Save Phone Number

Description Trigger: Customers provide their phone number.

Save data to Attribute: Select the data to collect as "phone number" and save it to the attribute "phone_number".

Trigger Name: Weather Forecast

Description Trigger: Allows users to retrieve current weather information for a specific location.

Save data to Attribute: Select the data to collect as "city" and save it to the attribute "city".

Transfer to Flow: Activate the "Weather Forecast" flow, where you will connect to an external API to fetch the weather data for the collected city.

Wish you success in your business with the AhaChat AI.