> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials.md). Agents can also search and read this documentation through its [MCP server](https://dnotifier.gitbook.io/product-docs/~gitbook/mcp).

# Tutorials

Short, copy-pasteable walks for common setups. Start here when you want to ship something quickly; dig into [Multi-model providers](https://dnotifier.gitbook.io/product-docs/ai/multi-models.md) when you need provider details.

These pages assume you've already saved a connection under **Projects → AI Studio → Providers**. Use `transport: "http"` so `sendAI` returns on the promise, and check `aiEnabled` after `connect()`.

## Tutorials

| Tutorial                                                                                                                 | What you learn                             |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------ |
| [First OpenAI call](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/first-openai-call.md)                  | Explicit `provider` + `model` on `sendAI`  |
| [Switch providers on one client](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/switch-providers.md)      | OpenAI then Anthropic without reconnecting |
| [Agent defaults and overrides](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/agent-defaults-override.md) | Agent-level stack vs per-call override     |
| [Research then write](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/research-then-write.md)              | Perplexity → Claude in one workflow        |
| [Swap providers with env vars](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/env-based-providers.md)     | Same code, Azure / Bedrock / Ollama / SaaS |
| [RAG with a pinned model](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/rag-with-pinned-model.md)        | Knowledge base + chosen provider           |

## Troubleshooting

Quick checks when a call fails: [troubleshooting.md](https://dnotifier.gitbook.io/product-docs/tutorials/tutorials/troubleshooting.md).

## Add more later

Drop a new `.md` in this folder, add a row to the table above, and list it under **Tutorials** in `SUMMARY.md`. Keep provider deep-dives in [ai/multi-models](https://dnotifier.gitbook.io/product-docs/ai/multi-models.md); keep this section for end-to-end how-tos.
