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

# Guides

> Worked agents for payments operations (support, fraud and risk review, merchant underwriting) built end to end in the six Build steps, plus short recipes for one task each. Read when you want a working agent to copy rather than the method.

The Documentation tab teaches the method: six steps, capable first, then safe. This tab is where you copy a working agent. Each example below is one agent for a payments operations team, built in the same six steps, with the concrete values filled in: the job, the evaluation categories, the tools and their credential scopes, the runbook skill, the trigger, the seeded cases, and the guardrails added last.

Every page reads at its `.md` URL as a runbook for the `runtm-api` CLI, because each dashboard step carries its CLI equivalent in an agent-only block (hidden on the website, present at the `.md` URL).

## Payments operations

> [card] [Payment support agent](https://docs.runtm.com/guides/payments/support-agent.md)
>
> Reconstructs a charge, decline or refund from Zendesk, Stripe and the ledger and drafts a cited reply. Slack mention and email inbox. Approval before anything reaches the customer.

> [card] [Fraud and risk review agent](https://docs.runtm.com/guides/payments/fraud-risk-agent.md)
>
> Every 30 minutes, turns new Radar reviews and velocity alerts into a review packet posted to Slack. Enforcement stays human.

> [card] [Merchant underwriting agent](https://docs.runtm.com/guides/payments/underwriting-agent.md)
>
> Compares KYB results, registry data and the application, and writes a decision memo with open items. Linear tickets and a weekly periodic review.

> [card] [Multi-agent: underwriting re-review](https://docs.runtm.com/guides/payments/multi-agent-underwriting.md)
>
> An Underwriting Agent triggered from Slack delegates research to a Risk Agent and a block to an Engineering Agent, each behind a human approval. How subagents are triggered, attributed and graded.

The three single-agent examples follow the same order as [Build an agent](https://docs.runtm.com/build/overview.md); the multi-agent example builds each agent that way and then wires them together. If you are building something else, pick the closest one and change the values.

| | Support | Fraud and risk | Underwriting |
| - | - | - | - |
| Reached by | Slack mention, email | cron every 30 minutes, Slack post | Linear assignment, weekly cron |
| Tools | Zendesk, Stripe, Postgres | Stripe, BigQuery, Postgres | Middesk (custom), Postgres, Notion |
| Agent-scoped credential | Zendesk bot token | Stripe key with Radar read | Middesk key |
| Success categories | decline-explanation, duplicate-charge, refund-status | card-testing, velocity-spike, merchant-linkage | new-application, periodic-review, discrepancy |
| Approval gate | before posting a reply | before recommending a block | before attaching the memo, before a document request |

## Recipes

One task each, five minutes each.

> [card] [Connect Stripe with a restricted read-only key](https://docs.runtm.com/guides/recipes/connect-stripe-read-only.md)
>
> Stripe as a custom provider, the restricted key, and the skill that requires it.

> [card] [Add a KYB provider as a custom tool provider](https://docs.runtm.com/guides/recipes/add-kyb-provider.md)
>
> Middesk, Persona or Alloy as a static-key provider scoped to one agent.

> [card] [Add an MCP server with an API-token connection](https://docs.runtm.com/guides/recipes/add-mcp-server-with-token.md)
>
> A stdio MCP server whose secret lives on a connection, never in the snapshot.

> [card] [Route one Linear team to a different template](https://docs.runtm.com/guides/recipes/route-linear-team-to-template.md)
>
> Team overrides on the agent's Linear trigger.

> [card] [Test a scheduled agent before enabling it](https://docs.runtm.com/guides/recipes/test-scheduled-agent-before-enabling.md)
>
> Create disabled, run now, read the session, then enable.

> [card] [Request an approval from inside a run](https://docs.runtm.com/guides/recipes/request-approval-from-a-run.md)
>
> The runtm-approval helper and who can resolve it.

> [card] [Delegate work to another agent](https://docs.runtm.com/guides/recipes/delegate-to-another-agent.md)
>
> The delegate script, the gate hook and the two-line command the dashboard recognises.

> [card] [Give an agent persistent memory in Notion or Confluence](https://docs.runtm.com/guides/recipes/agent-memory-in-notion-or-confluence.md)
>
> A playbook and a memory page the agent reads at the start of every run and appends to at the end. Recommended for memory.

> [card] [Share an app's data across sessions](https://docs.runtm.com/guides/recipes/share-data-across-sessions.md)
>
> Give every session of a template the same small database, so apps built there see the same data.

> [card] [Agent that opens a PR on your GitHub repo](https://docs.runtm.com/guides/recipes/repo-agent-opens-prs.md)
>
> A template from a GitHub repo, an hourly rebuild, a startup script pull, and a prompt that ends in a PR.

## Looking for API patterns?

Authentication, sessions at scale, streaming prompts over WebSockets, session files, long-running prompts, activity and telemetry, and outbound webhooks moved to the API Reference tab under [Patterns](https://docs.runtm.com/cloud-api/patterns/authentication.md).


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