> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqwish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Ready-made decisions for common jobs, each with a request you can copy.

Most examples are recipes: ready-made decisions from the
[playground](https://console.sqwish.ai/#playground). Open one there to run it without an account,
or copy its request into your code after you set `SQWISH_API_KEY` as in the
[quickstart](https://docs.sqwish.ai/quickstart.md). Each page also shows how to act on the answer and adapt it to your data.

## Triage and routing

> [card] [Route a support ticket](https://docs.sqwish.ai/examples/customer-support.md)
>
> Use it to pick the team for a ticket, spot a deadline within a day and score the impact.

> [card] [Analyse every comment](https://docs.sqwish.ai/examples/comments.md)
>
> Use it to score sentiment, buying intent and spam on every comment of a post.

> [card] [Sort a request by the kind of work it needs](https://docs.sqwish.ai/examples/request-classification.md)
>
> Use it to send each request to the right model and prompt.

> [card] [Decide when to hand a conversation on](https://docs.sqwish.ai/examples/escalation.md)
>
> Use it to pass a conversation to a person or a bigger model only when your bot can't finish it.

## Agents

> [card] [Pick the tool for a request](https://docs.sqwish.ai/examples/tool-selection.md)
>
> Use it to give your agent's planner only the tool that fits, or none.

> [card] [Check a tool call before it runs](https://docs.sqwish.ai/examples/tool-risk.md)
>
> Use it to run, ask about or refuse each call your agent is about to make.

> [card] [Spot a prompt injection or jailbreak](https://docs.sqwish.ai/examples/prompt-injection.md)
>
> Use it to catch text that tries to talk your assistant out of its instructions.

> [card] [Pick the memories worth recalling](https://docs.sqwish.ai/examples/memory-recall.md)
>
> Use it to choose which stored memories go into your assistant's prompt.

## Retrieval and answer quality

> [card] [Grade how well each passage answers the query](https://docs.sqwish.ai/examples/retrieval-relevance.md)
>
> Use it to rerank retrieved passages and drop the ones that don't help.

> [card] [Check a draft against its sources](https://docs.sqwish.ai/examples/groundedness.md)
>
> Use it to catch claims your sources don't support before your user sees them.

> [card] [Decide if a draft is ready to send](https://docs.sqwish.ai/examples/answer-quality.md)
>
> Use it as a starting rubric for scoring replies before they go out.

To retry a request without running or paying for it twice, see
[retries and idempotency](https://docs.sqwish.ai/guides/retries.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.