> 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/run-agents-in-apps-workflows-and-tasks/running-agents.md).

# Running Agents

Learn how to trigger and run Agents in Jetadmin manually via the UI, through workflows, or by chaining agents together for seamless automation.

Agents don’t run on their own—they need to be **triggered manually or programmatically** using one of the following methods:

* **Agent Chat Component:** Add this to your app’s UI to let users interact with the agent directly.

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

* **Ask Agent Action:** Use this Action within workflows or automations to run the agent at the right moment.

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FYybQ1AQiCjTpOZ1KJOpM%2Fimage.png?alt=media&amp;token=aef173f4-a1d6-40eb-9051-358580cc0acc" alt=""><figcaption></figcaption></figure>

* **Another Agent:** You can chain agents together, allowing one agent to call another as part of its logic.

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2Fp2svZyPK59S3WYpX5ncn%2Fimage.png?alt=media&amp;token=656abfe4-3255-4866-8027-07eac03c06f2" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Note:** To run an agent automatically—such as on a schedule or after receiving a webhook—you'll need to create an Automation that includes the **Invoke Agent** block.
{% endhint %}

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

{% content-ref url="/pages/-MPoTxvAsdJ7fwhG2z0T" %}
[Overview: workflows and automations](/workflow/overview.md)
{% endcontent-ref %}


---

# 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/run-agents-in-apps-workflows-and-tasks/running-agents.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.
