# Building Your Chatbot

Now that you've set your goals and outlined your chatbot’s purpose, it’s time to start building! This section will walk you through the process of creating a chatbot that aligns with your objectives.

## 1. Select the Right Channel

<figure><img src="https://1295068169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsYptgdnnitw07ZrkKga3%2Fuploads%2FHrWbZkNMvHJ9HZyVQGCk%2Fimage.png?alt=media&#x26;token=bd745560-4de4-4754-a731-fe765dd5e3ad" alt=""><figcaption></figcaption></figure>

Choosing the right communication channel for your chatbot is crucial for reaching your audience effectively. The channel you select will depend on where your users are most active and how you want them to interact with your chatbot.

{% content-ref url="../platform/connect-to-social-media-channels" %}
[connect-to-social-media-channels](https://help.mampuai.com/mampu-ai/platform/connect-to-social-media-channels)
{% endcontent-ref %}

## 2. Design the Conversation Flow

<div data-full-width="false"><figure><img src="https://1295068169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsYptgdnnitw07ZrkKga3%2Fuploads%2F8mWT36CVpxsAwCi7gg2h%2Fimage.png?alt=media&#x26;token=653d17ac-08af-4a1d-b17b-fe09f7abeb0b" alt=""><figcaption><p>Simple flow with AI integration and Notifying</p></figcaption></figure></div>

Designing the conversation flow is one of the most important steps in chatbot development. The flow dictates how users will interact with the bot and how it responds to different inputs.

Start by considering the main goals of your chatbot. Will it assist customers with product inquiries, handle common support questions, or guide users through a specific process? Once you have a clear understanding of your chatbot’s purpose, map out potential interactions. Create a flowchart that covers all the major paths users might take and the responses they will receive at each stage.

### Implement AI

For a more intelligent chatbot, integrating AI and NLP will enable it to understand and process user queries naturally. Choose an AI-powered integration like OpenAI or Claude for:

* **Intent Recognition**: Recognizing user intent behind their messages.
* **Entities**: Extracting key data points (e.g., dates, names, product types).
* **Context Management**: Handling multi-turn conversations and keeping track of context to maintain relevant dialogue.

### Chatbot Building

We provide various guide for how to use AI to building chatbot. For more specific information, can click below link to see.

{% content-ref url="../easy-guide-to-build-chatbot" %}
[easy-guide-to-build-chatbot](https://help.mampuai.com/mampu-ai/easy-guide-to-build-chatbot)
{% endcontent-ref %}

## 3. Test Your Chatbot

Once your chatbot has been built, rigorous testing is critical to ensure that it performs as expected. Testing should be done both internally and externally to identify any issues and refine the chatbot’s performance. &#x20;

{% content-ref url="../self-onboarding/basic-ai-chatbot-tutorial/6.-testing-the-ai" %}
[6.-testing-the-ai](https://help.mampuai.com/mampu-ai/self-onboarding/basic-ai-chatbot-tutorial/6.-testing-the-ai)
{% endcontent-ref %}

## 4. Deploy Your Chatbot

With testing complete and adjustments made, it’s time to deploy your chatbot. With a simple click of the "publish" button, and your chatbot will be live and ready to interact with users!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.mampuai.com/mampu-ai/getting-started/building-your-chatbot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
