# AI Agent Component

When should you use this?

Use this feature when:

* You want to automate intelligent conversations using AI
* You need dynamic responses based on user queries
* You are trying to replace rule-based flows with adaptive AI behavior

***

### What is AI Agent Component?

The AI Agent Component is an advanced chatbot block within ChatFlows that enables AI-driven conversations.

It replaces the older AI component and provides enhanced capabilities such as contextual responses, controlled execution, and configurable AI behavior through centralized AI settings.

***

### Benefits of AI Agent Component

* 🚀 Enables intelligent, context-aware conversations
* ⏱️ Reduces dependency on static flows and manual logic
* 🎯 Improves response accuracy using AI-driven reasoning
* 🔄 Provides flexible control over AI execution and transitions
* 📈 Enhances user experience with dynamic interactions

***

### Expected Outcome

After setting this up:

* Your chatbot will respond intelligently using AI
* You will be able to control how and when AI responds
* Users will experience more natural and adaptive conversations

> 💡 Tip: Combine AI Agent with flow logic to balance automation and control.

***

### How to Use AI Agent Component

1. Go to the **“ChatFlows”** section from the left sidebar.
2. Open or create a flow and add the **“AI Agent”** component.
3. Enter the **“Message”** that will be displayed to the user.
4. Configure the **“Exit Prompt”** to define when the AI should stop execution.
5. Enable and configure **Guarded Queries** to limit the number of user interactions (optional).
6. Select the **“Go To Next”** step to define the next flow after AI execution.
7. Expand **“Advanced Settings”** and configure:
   1. Notify when user responds
   2. Read messages after each interaction
   3. Include answers in email transcripts

***

### Configuring AI Settings

To control how your AI Agent behaves globally:

1. Go to the **“Bot Settings”** section.
2. Navigate to **“AI Settings”**.
3. Configure the following:
   1. Prompt
   2. Communication Style
   3. Metadata
   4. Advanced AI Settings (LLM provider, fallback models, etc.)

***

### Best Practices

> 💡 Use clear prompts to guide AI behavior effectively

> ⚠️ Define exit conditions properly to avoid infinite AI loops

> 🚀 Limit guarded queries to maintain control over conversations

> 🎯 Align AI responses with your business tone and use case

***

### Troubleshooting

<details>

<summary>AI Agent not responding correctly</summary>

Check your prompt and communication style settings. Improper configuration may lead to irrelevant responses.

</details>

<details>

<summary>AI continues responding without stopping</summary>

Ensure that the Exit Prompt is properly defined to control when the AI should stop.

</details>

<details>

<summary>Guarded queries not limiting interactions</summary>

Verify that the guarded query limit is correctly set and saved.

</details>

<details>

<summary>AI responses not aligned with business tone</summary>

Update the communication style and prompt settings in AI Settings.

</details>

<details>

<summary>Advanced settings not applying</summary>

Ensure that the selected LLM provider and fallback configurations are correctly saved.

</details>

***

### FAQs

<details>

<summary>What replaced the old AI component?</summary>

The AI Agent Component has replaced the older AI block with enhanced capabilities and centralized configuration.

</details>

<details>

<summary>What is an Exit Prompt?</summary>

It defines the conditions under which the AI stops responding and moves to the next step.

</details>

<details>

<summary>What are Guarded Queries?</summary>

They limit the number of interactions a user can have with the AI component.

</details>

<details>

<summary>Can I customize AI behavior globally?</summary>

Yes, you can configure prompts, styles, and advanced settings in the AI Settings section.

</details>

<details>

<summary>Can I control what happens after AI execution?</summary>

Yes, using the “Go To Next” option, you can define the next step in the flow.

</details>

<details>

<summary>Which AI model does the agent use?</summary>

You can configure the LLM provider and fallback models in Advanced AI Settings.

</details>

<details>

<summary>Can I use AI Agent with other flow components?</summary>

Yes, it can be combined with other components to create hybrid flows.

</details>

***

### Related Articles

{% content-ref url="../../../../ai-agents/creating-ai-agents-in-botpenguin/setting-up-your-ai-agent/prompt-style" %}
[prompt-style](https://help.botpenguin.com/ai-agents/creating-ai-agents-in-botpenguin/setting-up-your-ai-agent/prompt-style)
{% endcontent-ref %}

{% content-ref url="../../../../ai-agents/creating-ai-agents-in-botpenguin/setting-up-your-ai-agent/communication-style" %}
[communication-style](https://help.botpenguin.com/ai-agents/creating-ai-agents-in-botpenguin/setting-up-your-ai-agent/communication-style)
{% endcontent-ref %}

{% content-ref url="../../../../ai-agents/creating-ai-agents-in-botpenguin/setting-up-your-ai-agent/meta-data" %}
[meta-data](https://help.botpenguin.com/ai-agents/creating-ai-agents-in-botpenguin/setting-up-your-ai-agent/meta-data)
{% endcontent-ref %}

{% content-ref url="../../../../ai-agents/creating-ai-agents-in-botpenguin/advance-ai-settings" %}
[advance-ai-settings](https://help.botpenguin.com/ai-agents/creating-ai-agents-in-botpenguin/advance-ai-settings)
{% endcontent-ref %}

***

### Support

If you still have questions for our team, write to us at [**support@botpenguin.com**](mailto:support@botpenguin.com). We’ll get back to you within 48 hours.

***

### 🎉 Completion

🎉 Congratulations, you have successfully completed this section! You're one step closer to mastering BotPenguin AI capabilities.
