Skip to content

Examples and guides for using the OpenAI API

Replace Agents API Mermaid diagrams with SVGs (#3109)

Abdulrahman Alfozan4592334c2390
diff --git a/examples/agents_api/apps/data_analyst/README.md b/examples/agents_api/apps/data_analyst/README.md
index 186e745a..d31fce07 100644
--- a/examples/agents_api/apps/data_analyst/README.md
+++ b/examples/agents_api/apps/data_analyst/README.md
@@ -13,24 +13,7 @@ This example draws on [OpenAI's in-house data agent](https://openai.com/index/in
ground the analysis in real schemas, supply business context, expose the SQL,
and reuse corrections the team has explicitly saved.
-```mermaid
-sequenceDiagram
- participant Person
- participant App as Your application
- participant Agent as Agents API
- participant Warehouse as Read-only warehouse
- participant Memory as Analyst memory
-
- Person->>App: Why did paid conversions drop last week?
- App->>Agent: Start or resume the user's session
- Agent->>Warehouse: Discover tables and inspect their schemas
- Agent->>App: Check definitions, company knowledge, and past queries
- Agent->>Memory: Find saved analyst corrections
- Agent->>Warehouse: Execute and verify read-only SQL
- Agent-->>Person: Explain the findings, sources, and assumptions
- Person->>Agent: Remember to exclude manually provisioned accounts.
- Agent->>Memory: Save the correction for future analyses
-```
+![Data analyst workflow: inspect warehouse schemas, verify read-only SQL, explain findings, and save analyst corrections for future questions.](assets/workflow.svg)
## What you need
diff --git a/examples/agents_api/apps/data_analyst/assets/workflow.svg b/examples/agents_api/apps/data_analyst/assets/workflow.svg
new file mode 100644
index 00000000..fcfb8868
--- /dev/null
+++ b/examples/agents_api/apps/data_analyst/assets/workflow.svg
@@ -0,0 +1,42 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="947" viewBox="0 0 1440 947" role="img" aria-labelledby="title description">
+<title id="title">Data analyst workflow</title>
+<desc id="description">User to Your application: Ask a business question. Your application to Agents API: Start or resume session. Agents API to Read-only warehouse: Discover tables and schemas. Agents API to Your application: Check business context. Agents API to Analyst memory: Find saved corrections. Agents API to Read-only warehouse: Run and verify read-only SQL. Agents API to User: Explain findings and sources. User to Agents API: Ask to remember a correction. Agents API to Analyst memory: Save for future analyses.</desc>
+<defs><marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M 0 0 L 10 5 L 0 10 Z" fill="#253443"/></marker></defs>
+<rect width="1440" height="947" fill="#FFFFFF"/>
+<g font-family="Arial, Helvetica, sans-serif">
+<text x="24" y="46" text-anchor="start" font-size="26" font-weight="600" fill="#162231"><tspan x="24" dy="0">Data analyst</tspan></text>
+<rect x="24" y="80" width="267.2" height="788.6000000000001" fill="#F4F5F6"/>
+<rect x="24" y="80" width="267.2" height="78" fill="#E4E6E9"/>
+<text x="157.6" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="157.6" dy="0">User</tspan></text>
+<path d="M 157.6 158 V 868.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="305.2" y="80" width="267.2" height="788.6000000000001" fill="#EDF7FE"/>
+<rect x="305.2" y="80" width="267.2" height="78" fill="#CCE6FA"/>
+<text x="438.79999999999995" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="438.79999999999995" dy="0">Your application</tspan></text>
+<path d="M 438.79999999999995 158 V 652.8000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 438.79999999999995 685.4000000000001 V 721.4000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 438.79999999999995 754.0000000000001 V 868.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="586.4" y="80" width="267.2" height="788.6000000000001" fill="#EEFBF3"/>
+<rect x="586.4" y="80" width="267.2" height="78" fill="#CDF2DB"/>
+<text x="720" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="720" dy="0">Agents API</tspan></text>
+<path d="M 720 158 V 868.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="867.5999999999999" y="80" width="267.2" height="788.6000000000001" fill="#EDF7FE"/>
+<rect x="867.5999999999999" y="80" width="267.2" height="78" fill="#CCE6FA"/>
+<text x="1001.1999999999999" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1001.1999999999999" dy="0">Read-only warehouse</tspan></text>
+<path d="M 1001.1999999999999 158 V 487" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1001.1999999999999 519.6 V 790.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1001.1999999999999 822.6000000000001 V 868.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="1148.8" y="80" width="267.2" height="788.6000000000001" fill="#FFFCED"/>
+<rect x="1148.8" y="80" width="267.2" height="78" fill="#FFF0B3"/>
+<text x="1282.3999999999999" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1282.3999999999999" dy="0">Analyst memory</tspan></text>
+<path d="M 1282.3999999999999 158 V 868.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<g data-from="0" data-to="1"><path d="M 157.6 222.6 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="298.2" y="208" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="298.2" dy="0">Ask a business question</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 438.79999999999995 291.2 H 720" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="579.4" y="276.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Start or resume session</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 720 388.4 H 1001.1999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="860.5999999999999" y="345.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="860.5999999999999" dy="0">Discover tables and</tspan><tspan x="860.5999999999999" dy="28.6">schemas</tspan></text></g>
+<g data-from="2" data-to="1"><path d="M 720 457 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="579.4" y="442.4" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Check business context</tspan></text></g>
+<g data-from="2" data-to="4"><path d="M 720 525.6 H 1282.3999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1001.1999999999999" y="511" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1001.1999999999999" dy="0">Find saved corrections</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 720 622.8000000000001 H 1001.1999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="860.5999999999999" y="579.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="860.5999999999999" dy="0">Run and verify read-only</tspan><tspan x="860.5999999999999" dy="28.6">SQL</tspan></text></g>
+<g data-from="2" data-to="0"><path d="M 720 691.4000000000001 H 157.6" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="438.8" y="676.8000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="438.8" dy="0">Explain findings and sources</tspan></text></g>
+<g data-from="0" data-to="2"><path d="M 157.6 760.0000000000001 H 720" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="438.8" y="745.4000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="438.8" dy="0">Ask to remember a correction</tspan></text></g>
+<g data-from="2" data-to="4"><path d="M 720 828.6000000000001 H 1282.3999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1001.1999999999999" y="814.0000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1001.1999999999999" dy="0">Save for future analyses</tspan></text></g>
+<text x="24" y="913.6000000000001" text-anchor="start" font-size="17" font-weight="400" fill="#4D5B6A"><tspan x="24" dy="0">Your application handles warehouse queries and saved memory.</tspan></text>
+</g></svg>
\ No newline at end of file
diff --git a/examples/agents_api/apps/document_review/README.md b/examples/agents_api/apps/document_review/README.md
index e27ee64a..b12e989d 100644
--- a/examples/agents_api/apps/document_review/README.md
+++ b/examples/agents_api/apps/document_review/README.md
@@ -10,23 +10,7 @@ Mounted files keep inputs separate from outputs, and a discovered skill gives
each reviewer the same policy. Your application validates the reports and
decides what happens next.
-```mermaid
-sequenceDiagram
- participant Person
- participant App as Review command
- participant Agent as Agents API
- participant Reviewers as Specialist subagents
- participant Policy as Mounted review skill
- participant Workspace as Mounted input/output folders
- Person->>App: Submit a folder of invoices and contracts
- App->>Agent: Create one multi-agent session
- App->>Workspace: Mount input and policy read-only; output read-write
- Agent->>Reviewers: Delegate one document to each specialist
- Reviewers->>Policy: Discover and apply expense-review-policy
- Reviewers->>Workspace: Write individual JSON reports
- Agent->>Workspace: Write the consolidated summary
- App-->>Person: Write findings for human review
-```
+![Document review workflow: mount documents and a review skill, delegate to specialist subagents, and write individual reports and a consolidated summary.](assets/workflow.svg)
## What you need
diff --git a/examples/agents_api/apps/document_review/assets/workflow.svg b/examples/agents_api/apps/document_review/assets/workflow.svg
new file mode 100644
index 00000000..b098a12d
--- /dev/null
+++ b/examples/agents_api/apps/document_review/assets/workflow.svg
@@ -0,0 +1,45 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="964" viewBox="0 0 1440 964" role="img" aria-labelledby="title description">
+<title id="title">Bulk document review workflow</title>
+<desc id="description">User to Review command: Submit document folder. Review command to Agents API: Create multi-agent session. Review command to Input / output folders: Mount input + policy read-only; output writable. Agents API to Specialist subagents: Delegate each document. Specialist subagents to Mounted review skill: Discover and apply policy. Specialist subagents to Input / output folders: Write individual JSON reports. Agents API to Input / output folders: Write consolidated summary. Review command to User: Return findings for review.</desc>
+<defs><marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M 0 0 L 10 5 L 0 10 Z" fill="#253443"/></marker></defs>
+<rect width="1440" height="964" fill="#FFFFFF"/>
+<g font-family="Arial, Helvetica, sans-serif">
+<text x="24" y="46" text-anchor="start" font-size="26" font-weight="600" fill="#162231"><tspan x="24" dy="0">Bulk document review</tspan></text>
+<rect x="24" y="80" width="220.33333333333334" height="805.8000000000002" fill="#F4F5F6"/>
+<rect x="24" y="80" width="220.33333333333334" height="78" fill="#E4E6E9"/>
+<text x="134.16666666666669" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="134.16666666666669" dy="0">User</tspan></text>
+<path d="M 134.16666666666669 158 V 885.8000000000002" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="258.33333333333337" y="80" width="220.33333333333334" height="805.8000000000002" fill="#EDF7FE"/>
+<rect x="258.33333333333337" y="80" width="220.33333333333334" height="78" fill="#CCE6FA"/>
+<text x="368.5" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="368.5" dy="0">Review command</tspan></text>
+<path d="M 368.5 158 V 885.8000000000002" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="492.6666666666667" y="80" width="220.33333333333334" height="805.8000000000002" fill="#EEFBF3"/>
+<rect x="492.6666666666667" y="80" width="220.33333333333334" height="78" fill="#CDF2DB"/>
+<text x="602.8333333333334" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="602.8333333333334" dy="0">Agents API</tspan></text>
+<path d="M 602.8333333333334 158 V 885.8000000000002" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="727" y="80" width="220.33333333333334" height="805.8000000000002" fill="#EEFBF3"/>
+<rect x="727" y="80" width="220.33333333333334" height="78" fill="#CDF2DB"/>
+<text x="837.1666666666667" y="110.1" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="837.1666666666667" dy="0">Specialist</tspan><tspan x="837.1666666666667" dy="29.900000000000002">subagents</tspan></text>
+<path d="M 837.1666666666667 158 V 378.4" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 837.1666666666667 411 V 710.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 837.1666666666667 742.6000000000001 V 885.8000000000002" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="961.3333333333334" y="80" width="220.33333333333334" height="805.8000000000002" fill="#EDF7FE"/>
+<rect x="961.3333333333334" y="80" width="220.33333333333334" height="78" fill="#CCE6FA"/>
+<text x="1071.5" y="110.1" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1071.5" dy="0">Mounted review</tspan><tspan x="1071.5" dy="29.900000000000002">skill</tspan></text>
+<path d="M 1071.5 158 V 641.4000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1071.5 674.0000000000001 V 710.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1071.5 742.6000000000001 V 885.8000000000002" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="1195.6666666666667" y="80" width="220.33333333333334" height="805.8000000000002" fill="#FFFCED"/>
+<rect x="1195.6666666666667" y="80" width="220.33333333333334" height="78" fill="#FFF0B3"/>
+<text x="1305.8333333333335" y="110.1" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1305.8333333333335" dy="0">Input / output</tspan><tspan x="1305.8333333333335" dy="29.900000000000002">folders</tspan></text>
+<path d="M 1305.8333333333335 158 V 885.8000000000002" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<g data-from="0" data-to="1"><path d="M 134.16666666666669 251.2 H 368.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="251.33333333333334" y="208" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="251.33333333333334" dy="0">Submit document</tspan><tspan x="251.33333333333334" dy="28.6">folder</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 368.5 348.4 H 602.8333333333334" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="485.6666666666667" y="305.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="485.6666666666667" dy="0">Create multi-agent</tspan><tspan x="485.6666666666667" dy="28.6">session</tspan></text></g>
+<g data-from="1" data-to="5"><path d="M 368.5 417 H 1305.8333333333335" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="837.1666666666667" y="402.4" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="837.1666666666667" dy="0">Mount input + policy read-only; output writable</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 602.8333333333334 514.2 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="720" y="471" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Delegate each</tspan><tspan x="720" dy="28.6">document</tspan></text></g>
+<g data-from="3" data-to="4"><path d="M 837.1666666666667 611.4000000000001 H 1071.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="954.3333333333334" y="568.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="954.3333333333334" dy="0">Discover and apply</tspan><tspan x="954.3333333333334" dy="28.6">policy</tspan></text></g>
+<g data-from="3" data-to="5"><path d="M 837.1666666666667 680.0000000000001 H 1305.8333333333335" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1071.5" y="665.4000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1071.5" dy="0">Write individual JSON reports</tspan></text></g>
+<g data-from="2" data-to="5"><path d="M 602.8333333333334 748.6000000000001 H 1305.8333333333335" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="954.3333333333335" y="734.0000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="954.3333333333335" dy="0">Write consolidated summary</tspan></text></g>
+<g data-from="1" data-to="0"><path d="M 368.5 845.8000000000002 H 134.16666666666669" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="251.33333333333334" y="802.6000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="251.33333333333334" dy="0">Return findings for</tspan><tspan x="251.33333333333334" dy="28.6">review</tspan></text></g>
+<text x="24" y="930.8000000000002" text-anchor="start" font-size="17" font-weight="400" fill="#4D5B6A"><tspan x="24" dy="0">Specialists share one sandbox; findings still require human review.</tspan></text>
+</g></svg>
\ No newline at end of file
diff --git a/examples/agents_api/apps/github_issues/README.md b/examples/agents_api/apps/github_issues/README.md
index c28d4622..5bdf471a 100644
--- a/examples/agents_api/apps/github_issues/README.md
+++ b/examples/agents_api/apps/github_issues/README.md
@@ -9,21 +9,7 @@ An Agents API session gives the agent access to the checked-out repository and
test commands. Your application verifies the trigger, posts the report, and
releases the workspace. Each issue gets its own sandbox.
-```mermaid
-sequenceDiagram
- participant User
- participant GitHub
- participant App as Webhook receiver
- participant Agent as Agents API
- participant Sandbox
- User->>GitHub: Open a new issue
- GitHub->>App: Send a signed issues.opened webhook
- App->>Agent: Create a self-hosted session
- App->>Sandbox: Clone the repository and start the executor
- Agent->>Sandbox: Inspect code and reproduce the bug
- Agent-->>App: Root cause and suggested fix
- App-->>GitHub: Post the investigation as a comment
-```
+![GitHub investigation workflow: receive an issue webhook, inspect the repository in a sandbox, and post findings on the issue.](assets/workflow.svg)
## What you need
diff --git a/examples/agents_api/apps/github_issues/assets/workflow.svg b/examples/agents_api/apps/github_issues/assets/workflow.svg
new file mode 100644
index 00000000..cb004c30
--- /dev/null
+++ b/examples/agents_api/apps/github_issues/assets/workflow.svg
@@ -0,0 +1,37 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="867" viewBox="0 0 1440 867" role="img" aria-labelledby="title description">
+<title id="title">GitHub issue investigator workflow</title>
+<desc id="description">User to GitHub: Open an issue. GitHub to Webhook receiver: Signed issues.opened webhook. Webhook receiver to Agents API: Create self-hosted session. Webhook receiver to Sandbox: Clone repository and start executor. Agents API to Sandbox: Inspect code and reproduce bug. Agents API to Webhook receiver: Root cause and suggested fix. Webhook receiver to GitHub: Post investigation comment.</desc>
+<defs><marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M 0 0 L 10 5 L 0 10 Z" fill="#253443"/></marker></defs>
+<rect width="1440" height="867" fill="#FFFFFF"/>
+<g font-family="Arial, Helvetica, sans-serif">
+<text x="24" y="46" text-anchor="start" font-size="26" font-weight="600" fill="#162231"><tspan x="24" dy="0">GitHub issue investigator</tspan></text>
+<rect x="24" y="80" width="267.2" height="708.6000000000001" fill="#F4F5F6"/>
+<rect x="24" y="80" width="267.2" height="78" fill="#E4E6E9"/>
+<text x="157.6" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="157.6" dy="0">User</tspan></text>
+<path d="M 157.6 158 V 788.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="305.2" y="80" width="267.2" height="708.6000000000001" fill="#EDF7FE"/>
+<rect x="305.2" y="80" width="267.2" height="78" fill="#CCE6FA"/>
+<text x="438.79999999999995" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="438.79999999999995" dy="0">GitHub</tspan></text>
+<path d="M 438.79999999999995 158 V 788.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="586.4" y="80" width="267.2" height="708.6000000000001" fill="#EDF7FE"/>
+<rect x="586.4" y="80" width="267.2" height="78" fill="#CCE6FA"/>
+<text x="720" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="720" dy="0">Webhook receiver</tspan></text>
+<path d="M 720 158 V 788.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="867.5999999999999" y="80" width="267.2" height="708.6000000000001" fill="#EEFBF3"/>
+<rect x="867.5999999999999" y="80" width="267.2" height="78" fill="#CDF2DB"/>
+<text x="1001.1999999999999" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1001.1999999999999" dy="0">Agents API</tspan></text>
+<path d="M 1001.1999999999999 158 V 418.40000000000003" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1001.1999999999999 451.00000000000006 V 788.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="1148.8" y="80" width="267.2" height="708.6000000000001" fill="#FFFCED"/>
+<rect x="1148.8" y="80" width="267.2" height="78" fill="#FFF0B3"/>
+<text x="1282.3999999999999" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1282.3999999999999" dy="0">Sandbox</tspan></text>
+<path d="M 1282.3999999999999 158 V 788.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<g data-from="0" data-to="1"><path d="M 157.6 222.6 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="298.2" y="208" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="298.2" dy="0">Open an issue</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 438.79999999999995 319.8 H 720" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="579.4" y="276.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Signed issues.opened</tspan><tspan x="579.4" dy="28.6">webhook</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 720 388.40000000000003 H 1001.1999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="860.5999999999999" y="373.8" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="860.5999999999999" dy="0">Create self-hosted session</tspan></text></g>
+<g data-from="2" data-to="4"><path d="M 720 457.00000000000006 H 1282.3999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1001.1999999999999" y="442.40000000000003" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1001.1999999999999" dy="0">Clone repository and start executor</tspan></text></g>
+<g data-from="3" data-to="4"><path d="M 1001.1999999999999 554.2 H 1282.3999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1141.8" y="511.00000000000006" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1141.8" dy="0">Inspect code and</tspan><tspan x="1141.8" dy="28.6">reproduce bug</tspan></text></g>
+<g data-from="3" data-to="2"><path d="M 1001.1999999999999 651.4000000000001 H 720" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="860.5999999999999" y="608.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="860.5999999999999" dy="0">Root cause and</tspan><tspan x="860.5999999999999" dy="28.6">suggested fix</tspan></text></g>
+<g data-from="2" data-to="1"><path d="M 720 748.6000000000001 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="579.4" y="705.4000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Post investigation</tspan><tspan x="579.4" dy="28.6">comment</tspan></text></g>
+<text x="24" y="833.6000000000001" text-anchor="start" font-size="17" font-weight="400" fill="#4D5B6A"><tspan x="24" dy="0">The application posts the findings; the agent does not merge or deploy changes.</tspan></text>
+</g></svg>
\ No newline at end of file
diff --git a/examples/agents_api/apps/sev_bot/README.md b/examples/agents_api/apps/sev_bot/README.md
index 8eae85df..6b026de4 100644
--- a/examples/agents_api/apps/sev_bot/README.md
+++ b/examples/agents_api/apps/sev_bot/README.md
@@ -11,32 +11,7 @@ deduplication, responder permissions, historical incident records, and cleanup.
This example records rollback approval but never executes a deployment.
-```mermaid
-sequenceDiagram
- participant Alert as PagerDuty / incident.io
- participant Slack as Slack #oncall
- participant App as Incident bot
- participant Agent as Agents API
- participant Sandbox as Incident sandbox + AWS skills
- participant Evidence as GitHub + AWS + incident history
- Alert->>App: Send production incident
- App->>Slack: Open an incident thread
- App->>Agent: Create one persistent incident session
- App->>Sandbox: Start codex exec-server with preinstalled AWS skills
- Agent->>Sandbox: Read relevant skills and the mounted runbook
- Agent->>Evidence: Inspect code, infrastructure, and previous incidents
- Evidence-->>Agent: Return correlated operational evidence
- Agent-->>App: agent.session.action_required webhook
- App->>Agent: Retrieve the pending function call
- App->>Slack: Post rollback approval buttons
- Slack-->>App: Approve or reject
- App->>Agent: Submit the decision as a tool result
- Agent-->>Slack: Explain the decision and next steps
- Slack-->>App: Ask a follow-up
- App->>Agent: Reuse the incident session for follow-ups
- App->>Agent: Save the resolution and close the session
- App->>Sandbox: Remove the incident sandbox
-```
+![Incident response workflow: receive an alert, investigate evidence, request rollback approval in Slack, save incident memory, and clean up.](assets/workflow.svg)
## What you need
diff --git a/examples/agents_api/apps/sev_bot/assets/workflow.svg b/examples/agents_api/apps/sev_bot/assets/workflow.svg
new file mode 100644
index 00000000..ae3be42a
--- /dev/null
+++ b/examples/agents_api/apps/sev_bot/assets/workflow.svg
@@ -0,0 +1,58 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="1715" viewBox="0 0 1440 1715" role="img" aria-labelledby="title description">
+<title id="title">SRE agent workflow</title>
+<desc id="description">Incident alerts to Incident bot: Send incident. Incident bot to Slack #oncall: Open incident thread. Incident bot to Agents API: Create incident session. Incident bot to Incident sandbox: Start executor + AWS skills. Agents API to Incident sandbox: Read skills + runbook. Agents API to Evidence + history: Inspect code, AWS + history. Evidence + history to Agents API: Return correlated evidence. Agents API to Incident bot: Action-required webhook. Incident bot to Agents API: Fetch pending tool call. Incident bot to Slack #oncall: Post approval buttons. Slack #oncall to Incident bot: Approve or reject. Incident bot to Agents API: Submit decision. Agents API to Slack #oncall: Explain next steps. Slack #oncall to Incident bot: Ask a follow-up. Incident bot to Agents API: Continue same session. Incident bot to Incident bot: Save incident memory. Incident bot to Agents API: Delete session. Incident bot to Incident sandbox: Remove sandbox.</desc>
+<defs><marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M 0 0 L 10 5 L 0 10 Z" fill="#253443"/></marker></defs>
+<rect width="1440" height="1715" fill="#FFFFFF"/>
+<g font-family="Arial, Helvetica, sans-serif">
+<text x="24" y="46" text-anchor="start" font-size="26" font-weight="600" fill="#162231"><tspan x="24" dy="0">SRE agent</tspan></text>
+<rect x="24" y="80" width="220.33333333333334" height="1556.3999999999999" fill="#F4F5F6"/>
+<rect x="24" y="80" width="220.33333333333334" height="78" fill="#E4E6E9"/>
+<text x="134.16666666666669" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="134.16666666666669" dy="0">Incident alerts</tspan></text>
+<path d="M 134.16666666666669 158 V 1636.3999999999999" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="258.33333333333337" y="80" width="220.33333333333334" height="1556.3999999999999" fill="#EDF7FE"/>
+<rect x="258.33333333333337" y="80" width="220.33333333333334" height="78" fill="#CCE6FA"/>
+<text x="368.5" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="368.5" dy="0">Slack #oncall</tspan></text>
+<path d="M 368.5 158 V 184" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 368.5 216.6 V 1636.3999999999999" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="492.6666666666667" y="80" width="220.33333333333334" height="1556.3999999999999" fill="#EDF7FE"/>
+<rect x="492.6666666666667" y="80" width="220.33333333333334" height="78" fill="#CCE6FA"/>
+<text x="602.8333333333334" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="602.8333333333334" dy="0">Incident bot</tspan></text>
+<path d="M 602.8333333333334 158 V 1121.6000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 602.8333333333334 1154.2 V 1356" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 602.8333333333334 1417.2 V 1636.3999999999999" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="727" y="80" width="220.33333333333334" height="1556.3999999999999" fill="#EEFBF3"/>
+<rect x="727" y="80" width="220.33333333333334" height="78" fill="#CDF2DB"/>
+<text x="837.1666666666667" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="837.1666666666667" dy="0">Agents API</tspan></text>
+<path d="M 837.1666666666667 158 V 418.4" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 837.1666666666667 451 V 1557.8" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 837.1666666666667 1590.3999999999999 V 1636.3999999999999" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="961.3333333333334" y="80" width="220.33333333333334" height="1556.3999999999999" fill="#FFFCED"/>
+<rect x="961.3333333333334" y="80" width="220.33333333333334" height="78" fill="#FFF0B3"/>
+<text x="1071.5" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1071.5" dy="0">Incident sandbox</tspan></text>
+<path d="M 1071.5 158 V 555.6" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1071.5 588.2 V 624.2" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1071.5 656.8000000000001 V 1636.3999999999999" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="1195.6666666666667" y="80" width="220.33333333333334" height="1556.3999999999999" fill="#EDF7FE"/>
+<rect x="1195.6666666666667" y="80" width="220.33333333333334" height="78" fill="#CCE6FA"/>
+<text x="1305.8333333333335" y="110.1" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1305.8333333333335" dy="0">Evidence +</tspan><tspan x="1305.8333333333335" dy="29.900000000000002">history</tspan></text>
+<path d="M 1305.8333333333335 158 V 1636.3999999999999" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<g data-from="0" data-to="2"><path d="M 134.16666666666669 222.6 H 602.8333333333334" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="368.5" y="208" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="368.5" dy="0">Send incident</tspan></text></g>
+<g data-from="2" data-to="1"><path d="M 602.8333333333334 291.2 H 368.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="485.6666666666667" y="276.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="485.6666666666667" dy="0">Open incident thread</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 602.8333333333334 388.4 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="720" y="345.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Create incident</tspan><tspan x="720" dy="28.6">session</tspan></text></g>
+<g data-from="2" data-to="4"><path d="M 602.8333333333334 457 H 1071.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="837.1666666666667" y="442.4" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="837.1666666666667" dy="0">Start executor + AWS skills</tspan></text></g>
+<g data-from="3" data-to="4"><path d="M 837.1666666666667 525.6 H 1071.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="954.3333333333334" y="511" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="954.3333333333334" dy="0">Read skills + runbook</tspan></text></g>
+<g data-from="3" data-to="5"><path d="M 837.1666666666667 594.2 H 1305.8333333333335" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1071.5" y="579.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1071.5" dy="0">Inspect code, AWS + history</tspan></text></g>
+<g data-from="5" data-to="3"><path d="M 1305.8333333333335 662.8000000000001 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="1071.5" y="648.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1071.5" dy="0">Return correlated evidence</tspan></text></g>
+<g data-from="3" data-to="2"><path d="M 837.1666666666667 760.0000000000001 H 602.8333333333334" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="720" y="716.8000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Action-required</tspan><tspan x="720" dy="28.6">webhook</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 602.8333333333334 857.2000000000002 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="720" y="814.0000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Fetch pending tool</tspan><tspan x="720" dy="28.6">call</tspan></text></g>
+<g data-from="2" data-to="1"><path d="M 602.8333333333334 954.4000000000002 H 368.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="485.6666666666667" y="911.2000000000002" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="485.6666666666667" dy="0">Post approval</tspan><tspan x="485.6666666666667" dy="28.6">buttons</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 368.5 1023.0000000000002 H 602.8333333333334" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="485.6666666666667" y="1008.4000000000002" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="485.6666666666667" dy="0">Approve or reject</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 602.8333333333334 1091.6000000000001 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="720" y="1077.0000000000002" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Submit decision</tspan></text></g>
+<g data-from="3" data-to="1"><path d="M 837.1666666666667 1160.2 H 368.5" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="602.8333333333334" y="1145.6000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="602.8333333333334" dy="0">Explain next steps</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 368.5 1228.8 H 602.8333333333334" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="485.6666666666667" y="1214.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="485.6666666666667" dy="0">Ask a follow-up</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 602.8333333333334 1326 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="720" y="1282.8" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Continue same</tspan><tspan x="720" dy="28.6">session</tspan></text></g>
+<g data-from="2" data-to="2"><path d="M 602.8333333333334 1423.2 H 666.8333333333334 V 1455.2 H 602.8333333333334" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="602.8333333333334" y="1380" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="602.8333333333334" dy="0">Save incident</tspan><tspan x="602.8333333333334" dy="28.6">memory</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 602.8333333333334 1527.8 H 837.1666666666667" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="720" y="1513.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="720" dy="0">Delete session</tspan></text></g>
+<g data-from="2" data-to="4"><path d="M 602.8333333333334 1596.3999999999999 H 1071.5" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="837.1666666666667" y="1581.8" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="837.1666666666667" dy="0">Remove sandbox</tspan></text></g>
+<text x="24" y="1681.3999999999999" text-anchor="start" font-size="17" font-weight="400" fill="#4D5B6A"><tspan x="24" dy="0">Approval records a decision, not a rollback. Incident memory is application-owned.</tspan></text>
+</g></svg>
\ No newline at end of file
diff --git a/examples/agents_api/apps/slack_bot/README.md b/examples/agents_api/apps/slack_bot/README.md
index 7a7ab0ff..423a79ab 100644
--- a/examples/agents_api/apps/slack_bot/README.md
+++ b/examples/agents_api/apps/slack_bot/README.md
@@ -12,21 +12,7 @@ application controls Slack access, workplace credentials, and the sandbox
lifecycle. A follow-up can continue the investigation without repeating the
original context.
-```mermaid
-sequenceDiagram
- participant Person
- participant Slack
- participant Agent as Agents API
- participant Tools as Slack tools and shared apps
- participant Sandbox as Thread sandbox
- Person->>Slack: @Agent Teammate Investigate this issue
- Slack->>Agent: Create or resume the thread's session
- Agent->>Tools: Search Slack, Notion, Drive, or GitHub
- Agent->>Sandbox: Analyze data or prepare repository changes
- Agent-->>Slack: Stream progress and reply in the thread
- Person->>Slack: @Agent Teammate Open a pull request
- Slack->>Agent: Continue the same session
-```
+![Slack bot workflow: create or resume a thread session, search connected tools, work in a sandbox, and respond to follow-up requests.](assets/workflow.svg)
## What you need
diff --git a/examples/agents_api/apps/slack_bot/assets/workflow.svg b/examples/agents_api/apps/slack_bot/assets/workflow.svg
new file mode 100644
index 00000000..8a4b2587
--- /dev/null
+++ b/examples/agents_api/apps/slack_bot/assets/workflow.svg
@@ -0,0 +1,37 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="839" viewBox="0 0 1440 839" role="img" aria-labelledby="title description">
+<title id="title">Slack bot workflow</title>
+<desc id="description">User to Slack: Tag the bot to investigate. Slack to Agents API: Start or resume thread session. Agents API to Connected tools: Search Slack and shared apps. Agents API to Thread sandbox: Analyze data or prepare changes. Agents API to Slack: Stream progress and reply. User to Slack: Ask to open a pull request. Slack to Agents API: Continue the same session.</desc>
+<defs><marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse" markerUnits="userSpaceOnUse"><path d="M 0 0 L 10 5 L 0 10 Z" fill="#253443"/></marker></defs>
+<rect width="1440" height="839" fill="#FFFFFF"/>
+<g font-family="Arial, Helvetica, sans-serif">
+<text x="24" y="46" text-anchor="start" font-size="26" font-weight="600" fill="#162231"><tspan x="24" dy="0">Slack bot</tspan></text>
+<rect x="24" y="80" width="267.2" height="680.0000000000001" fill="#F4F5F6"/>
+<rect x="24" y="80" width="267.2" height="78" fill="#E4E6E9"/>
+<text x="157.6" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="157.6" dy="0">User</tspan></text>
+<path d="M 157.6 158 V 760.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="305.2" y="80" width="267.2" height="680.0000000000001" fill="#EDF7FE"/>
+<rect x="305.2" y="80" width="267.2" height="78" fill="#CCE6FA"/>
+<text x="438.79999999999995" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="438.79999999999995" dy="0">Slack</tspan></text>
+<path d="M 438.79999999999995 158 V 760.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="586.4" y="80" width="267.2" height="680.0000000000001" fill="#EEFBF3"/>
+<rect x="586.4" y="80" width="267.2" height="78" fill="#CDF2DB"/>
+<text x="720" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="720" dy="0">Agents API</tspan></text>
+<path d="M 720 158 V 760.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="867.5999999999999" y="80" width="267.2" height="680.0000000000001" fill="#EDF7FE"/>
+<rect x="867.5999999999999" y="80" width="267.2" height="78" fill="#CCE6FA"/>
+<text x="1001.1999999999999" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1001.1999999999999" dy="0">Connected tools</tspan></text>
+<path d="M 1001.1999999999999 158 V 447" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<path d="M 1001.1999999999999 479.6 V 760.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<rect x="1148.8" y="80" width="267.2" height="680.0000000000001" fill="#FFFCED"/>
+<rect x="1148.8" y="80" width="267.2" height="78" fill="#FFF0B3"/>
+<text x="1282.3999999999999" y="125.05" text-anchor="middle" font-size="23" font-weight="600" fill="#162231"><tspan x="1282.3999999999999" dy="0">Thread sandbox</tspan></text>
+<path d="M 1282.3999999999999 158 V 760.0000000000001" fill="none" stroke="#A8B3BC" stroke-width="1" stroke-dasharray="6 6"/>
+<g data-from="0" data-to="1"><path d="M 157.6 222.6 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="298.2" y="208" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="298.2" dy="0">Tag the bot to investigate</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 438.79999999999995 319.8 H 720" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="579.4" y="276.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Start or resume thread</tspan><tspan x="579.4" dy="28.6">session</tspan></text></g>
+<g data-from="2" data-to="3"><path d="M 720 417 H 1001.1999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="860.5999999999999" y="373.8" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="860.5999999999999" dy="0">Search Slack and shared</tspan><tspan x="860.5999999999999" dy="28.6">apps</tspan></text></g>
+<g data-from="2" data-to="4"><path d="M 720 485.6 H 1282.3999999999999" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="1001.1999999999999" y="471" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="1001.1999999999999" dy="0">Analyze data or prepare changes</tspan></text></g>
+<g data-from="2" data-to="1"><path d="M 720 554.2 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" stroke-dasharray="7 5" marker-end="url(#arrow)"/><text x="579.4" y="539.6" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Stream progress and reply</tspan></text></g>
+<g data-from="0" data-to="1"><path d="M 157.6 622.8000000000001 H 438.79999999999995" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="298.2" y="608.2" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="298.2" dy="0">Ask to open a pull request</tspan></text></g>
+<g data-from="1" data-to="2"><path d="M 438.79999999999995 720.0000000000001 H 720" fill="none" stroke="#253443" stroke-width="1.6" marker-end="url(#arrow)"/><text x="579.4" y="676.8000000000001" text-anchor="middle" font-size="22" font-weight="400" fill="#162231"><tspan x="579.4" dy="0">Continue the same</tspan><tspan x="579.4" dy="28.6">session</tspan></text></g>
+<text x="24" y="805.0000000000001" text-anchor="start" font-size="17" font-weight="400" fill="#4D5B6A"><tspan x="24" dy="0">The bot application relays Slack messages and manages one session per thread.</tspan></text>
+</g></svg>
\ No newline at end of file