> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/getting-started/best-practices.md).

# Best Practices

Use this section to improve workflow quality after you know the basics.

{% hint style="info" %}
Best practices matter most after your first working workflow.
{% endhint %}

### What this section covers

* Build stronger agents with clearer workflow design.
* Speed up iteration with better AskAI and Auto Agents usage.
* Solve common workflow issues with proven implementation patterns.

### Start with the core guides

<table data-view="cards"><thead><tr><th>Guide</th><th data-card-target data-type="content-ref">Page</th></tr></thead><tbody><tr><td><strong>AI Agents Best Practices</strong><br>Learn how to use AskAI and Auto Agents effectively, structure prompts, and review generated workflows.</td><td><a href="/spaces/FSlso1Kjob5CLDrh0dVn/pages/DJyZAoxRoilKfufkQm2X">/spaces/FSlso1Kjob5CLDrh0dVn/pages/DJyZAoxRoilKfufkQm2X</a></td></tr><tr><td><strong>StackAI Hacks</strong><br>Use practical patterns for orchestration, troubleshooting, fallbacks, large files, and analytics.</td><td><a href="/spaces/FSlso1Kjob5CLDrh0dVn/pages/QosKgHVmDz5O08hEXp0Y">/spaces/FSlso1Kjob5CLDrh0dVn/pages/QosKgHVmDz5O08hEXp0Y</a></td></tr></tbody></table>

### Recommended order

1. Build a first version in [Workflow Builder](/getting-started/start-here/get-started-with-workflow-builder.md).
2. Apply [AI Agents Best Practices](/getting-started/best-practices/ai-agents-best-practices.md) to improve structure and iteration speed.
3. Use [StackAI Hacks](/guides-and-tips/stackai-hacks.md) when you need deeper patterns or troubleshooting help.

### Before you go deeper

If you are still learning the basics, start here first:

* Use [Start Here](/getting-started/start-here.md) for the fastest onboarding path.
* Use [Core AI Concepts](/getting-started/core-ai-concepts.md) to strengthen prompting and retrieval fundamentals.
* Use [Tutorials & Examples](/getting-started/tutorials-and-examples.md) to practice with real workflows.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.stackai.com/getting-started/best-practices.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
