> For the complete documentation index, see [llms.txt](https://docs.jetadmin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jetadmin.io/ai-agents/overview/add-an-agent.md).

# Add an Agent

Choose how to add a Jetadmin agent to your app

You can set up agents in several ways:

* Use Jetadmin triggers by selecting “Agent” as the action when setting one up.

{% content-ref url="/pages/qmG6B8DT5DDHSkQXDhhM" %}
[Choose a trigger](/workflow/start-a-workflow/choose-a-trigger.md)
{% endcontent-ref %}

{% @arcade/embed flowId="qM5YHy90gQHp6vJewhG5" url="<https://app.arcade.software/share/qM5YHy90gQHp6vJewhG5>" %}

* **Choose from the component list:** Type “Agent Chat” in the search box and drag it onto your page

{% @arcade/embed flowId="dzyDUvcYhYQSoDLzku7K" url="<https://app.arcade.software/share/dzyDUvcYhYQSoDLzku7K>" %}

* **Left menu:** Click **Agents** → **Add Agent**.\
  Then choose to **create an agent from scratch** or **use a built-in template**.

{% @arcade/embed flowId="v5wuQBO1pEK3iuS5n3sy" url="<https://app.arcade.software/share/v5wuQBO1pEK3iuS5n3sy>" %}

{% hint style="info" %}

### When to Use Agents

Agents are useful when you need more than simple automation rules. They are best for:

* **Complex workflows** where steps depend on reasoning or context.
* **Customer-facing chatbots** that can pull data from multiple sources.
* **Task delegation** when actions may involve multiple systems or tools.
* **Dynamic decisions** that go beyond pre-defined logic.

If your task is straightforward and always follows the same pattern, a regular workflow or automation may be enough. If it requires flexibility and decision-making, an agent is the better choice.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jetadmin.io/ai-agents/overview/add-an-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
