Scale customer reach and grow sales with AskHandle chatbot
Last updated:February 24, 2025

How to Enable AskHandle AI on Infobip?

In this tutorial, we’ll guide you through the process of integrating AskHandle AI using the Infobip Chatbot builder. Infobip's Chatbot tool allows you to create chatbots for WhatsApp and SMS through an intuitive drag-and-drop interface. You can easily create rule-based chatbots or integrate generative AI capabilities directly into the builder.

chatbot complete

(This is what the panel will look like after completing all the steps in this tutorial.)

To enable AskHandle AI, we'll be using the API feature within the Chatbot. Before you start, ensure that:

  • You have activated the Answers feature in your pricing plan.
  • You are on either the Grow or Scale plan.

Let’s get started!

Step 1: Create a New Chatbot

create new chatbot

  1. On the left-hand side menu, locate and click on Chatbots.
  2. Click on the New Chatbot button to create a new bot.
  3. Fill out the required details to set up the chatbot. For this demo, we’ll choose WhatsApp as the channel. You can choose a sender later or use Infobip’s test sender for now.

Step 2: Add a Dialog

two dialogs

We need to create two dialogs to make AskHandle AI functional. By default, you’ll see a dialog called Default on the left-hand panel.

  1. Click on ADD DIALOG to create a new dialog. Name it QA.

Step 3: Set Up the Conversation Flow

conversation flow

Now let’s configure the conversation to trigger the AskHandle AI.

3.1: Add API Call to Start a New Chat Room

  1. Go to the Default dialog and drag the API element from the right sidebar under Chatbot receives.

  2. To start the conversation with AskHandle AI, we need to create a new chat room for each user.

  3. In the API element settings:

    • conversation flow Select POST for the method.
    • Paste the following URL: https://dashboard.askhandle.com/api/v1/rooms/.
    • Choose JSON for the content type.
    • add token Add a key-value pair for Authorization:
      • Key: Authorization
      • Value: Token your_AskHandle_token (replace your_AskHandle_token with your actual token).

    If you don’t have your AskHandle token yet, follow these steps to retrieve it:

    Sh

    The response will return a token like this:

    Json

  4. Next, click on Response and specify the values you want to extract from the API response: response body attributes

    • Attribute: roomPath: uuid
    • Attribute: greeting_messagePath: greeting_message
  5. Click Go Back to continue.

3.2: Save the Greeting Message

save user response

  1. Drag and drop a Save user response element into the flow.
  2. Click the {} button and select the greeting_message attribute. (If you don't see it, go back to the API element and ensure the attribute is added correctly).
  3. For Save answer as, create a new attribute called body.
  4. In the Fallback section, select Go to dialog and choose Default.

3.3: Transition to the QA Dialog

share attributes

  1. Drag and drop the To Dialog element.
  2. Select QA as the target dialog.
  3. In the Share attribute value(s) to next intent section, click ADD ATTRIBUTE and select the following:
    • room
    • body
    • greeting_message

Step 4: Configure the QA Dialog

go to QA

Now let’s configure the QA dialog, where AskHandle AI will provide responses.

Go to the QA dialog and add the following elements:

  • API
  • Save user response
  • To Dialog

4.1: Set Up API Request

  1. Drag the API element into the QA dialog.
  2. In the API element settings:
    • Select POST for the method.
    • message api Paste the following URL: https://dashboard.askhandle.com/api/v1/messages/.
  3. In the Body section, use the following JSON format:
    Json
    add header

4.2: Set Up the Response Body

Click on Response and set up the response body attributes:

  • Attribute: support_answerPath: support_answer support answers

4.3: Save the Response

  1. Click on the Save user response element.
  2. Click the {} button and select the support_answer attribute. save qa
  3. For Save answer as, select body.
  4. In the Fallback section, select Go to Dialog and choose Default.

4.4: Transition Back to Default Dialog

  1. Go back to the To Dialog element.
  2. Select QA as the target dialog. to qa
  3. In the Share attribute value(s) to next intent section, click ADD ATTRIBUTE and select:
    • room
    • body
    • support_answer
    • greeting_message

Now your AskHandle AI is configured and ready to respond.

Step 5: Test the AI

simulator

To test your AI setup:

  1. Go to the Test section.
  2. Click START SIMULATION to initiate a conversation with AskHandle AI.

Step 6: Launch the AI

set up sender

To launch your AI on a real WhatsApp number:

  1. Go to Settings and select your WhatsApp number from the Phone number list.
  2. If you haven't registered a WhatsApp number yet, navigate to Channels and Numbers -> Numbers and purchase a new number. Complete the WhatsApp registration process.

Important Notice

set up conversations

If you intend to use AskHandle AI with a real WhatsApp number, ensure that Conversations is enabled in the Default inbound configuration.

If you don't see a Subscription ID, you should create a new one in the Developer Tools -> Subscriptions Management.

Was this article helpful?
Have more questions? Contact us