# Add an Agent

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" %}
[Triggers](/user-guide/workflow/triggers.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: 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://docs.jetadmin.io/agents/add-an-agent.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.
