Self-healing workflows — automatic error diagnosis and AI-driven repair
What is the Guardian Agent?
The Guardian Agent brings self-healing capabilities to your workflows. When a workflow fails, the Guardian Agent automatically diagnoses the problem, determines the root cause, and generates a concrete fix — then hands that fix to the Workflow Builder Agent to apply the repair. The entire cycle from error detection to code fix happens through AI, with you approving each step.This means workflows don’t just fail and wait for someone to debug them. The Guardian Agent reads the error analytics, inspects the code, figures out what went wrong, and writes the repair — you just review and approve.
The Guardian Agent operates in a three-stage pipeline: diagnose → propose → repair.
1. Diagnose
When you start a Guardian analysis, the agent:
Queries error analytics to find failure patterns, counts, and categories
Reads the workflow structure and code to understand what each node does
Compares draft vs. published versions to see what changed since the last deployment
Inspects recent run results to see what data each node received and produced
2. Error Categorization
The Guardian Agent classifies each error and determines whether it can be fixed automatically or requires manual action.
Code errors (auto-fixable via Workflow Builder Agent)
Since workflows must be working before they can be published, production errors are almost always caused by real-world conditions that weren’t accounted for during development. The Guardian Agent identifies these and writes targeted fixes:
Type
Examples
Unexpected data shapes
An API starts returning a new field format, an upstream node produces null where it didn’t before, an array is empty when it was always populated during testing
Unhandled edge cases
A user record has no email, a currency field contains a string, a list has 10,000 items instead of the expected 50
External API changes
A third-party API changes its response structure, adds required parameters, or deprecates an endpoint
Volume and scale issues
Payloads larger than expected, rate limits hit at production traffic levels, timeouts on operations that were fast in testing
Code configuration drift
A tool name or server name was renamed, parameter requirements changed after an MCP server update
Resource and connection errors (user action required)
These errors require manual intervention — the Guardian Agent identifies them and tells you exactly what to do:
Type
Examples
Recommended action
Missing connections
”PCID not found”, connection doesn’t exist
Create the connection, or switch to an existing one (Guardian checks for alternatives)
Expired OAuth tokens
”Token expired”, “Invalid token”
Refresh the connection’s OAuth credentials
Missing collections
Collection ID not found in datastore/filestorage/vault
Create the collection or fix the resource binding
External API outages
Service unavailable, persistent timeouts
Wait for the external service to recover
Draft vs. published comparison
The Guardian Agent also compares your current draft code against the published version. If a fix has already been made in the draft but not yet published, it will tell you — so you don’t duplicate work.
3. Propose and Repair
For code-fixable issues, the Guardian Agent writes a detailed repair prompt — including the root cause, the affected nodes, and the specific code changes needed. Multiple issues are combined into a single prompt so everything can be fixed in one pass.With your approval, the Guardian Agent then hands this repair prompt directly to the Workflow Builder Agent, which opens the workflow and applies the fixes automatically. You stay in control — the Guardian Agent always asks before invoking the Workflow Builder Agent, and you can review the proposed changes before they’re applied.For issues that can’t be fixed by code (expired tokens, missing connections), the Guardian Agent tells you exactly what manual steps to take.
See It In Action — A Real-World Walkthrough
The easiest way to understand the Guardian Agent is to watch it close the loop on an automation that is actively failing. This walkthrough takes you from “my workflow just broke in production” to “it’s fixed and running again” without leaving the Pinkfish app.
1
Build an automation that touches real-world data
Create a workflow that calls an external API and transforms its response. In development, every record the API returns looks the same — so a snippet like items.map(x => x.email.toLowerCase()) passes testing and gets published.Typical shapes that later cause failures in production:
A field you expected to always be present (email, name, id) is null or missing on some records
An upstream API adds a new field format, changes casing, or returns a string where it previously returned a number
A list you tested with 50 items arrives with 10,000
An MCP tool or connection is renamed after the workflow is published
None of these break a workflow during the build — they only surface once real traffic hits the published version.
2
Publish and let it fail
Publish the workflow and let it run against real production traffic — either on a schedule, via a trigger, or through a live integration. A record eventually comes through where email is null, the transform throws Cannot read property 'toLowerCase' of null, and the run fails.One failed run on its own is a blip. A pattern of failing runs is what the Guardian Agent picks up on.
3
Guardian surfaces the problem in Notifications
You don’t have to go looking for errors. The Notifications bell in the top navigation bar shows an unread count the moment a workflow starts accumulating failures from triggered runs.
Notifications bell with unread count
Open the bell and you’ll see a card for each affected workflow — the workflow name, a short summary, an error count, and a Review button:
A single error card — 'This workflow has encountered errors from triggered runs.'
The panel mixes two scopes of notification so nothing slips through the cracks:
Workflow error cards (org-scoped) — shown to every admin/builder in the org. One card per failing workflow.
Connection error cards (user-scoped) — shown only to the connection’s owner. If your personal Google, Slack, or API connection expires, loses auth, or is revoked upstream, the card tells you which connection broke and links you straight to the connection’s settings so you can reauthorize. Because these are user-scoped, a teammate reauthorizing their own connection never clutters your panel, and vice versa.
Click Review. The Guardian Agent panel opens docked beside your workflow, with the affected workflow already selected and its error summary pre-loaded — “30 errors in the last 30 days”, plus the Top Errors list grouped by pattern:
4
Start a new analysis
Inside the Guardian Agent panel, click How to fix it, then Start New Analysis:The button label changes to “Starting Analysis…” while the session spins up, then the chat panel opens alongside a status card that reads “Analysis in progress… The Guardian Agent is analyzing your workflow.”During this phase, the Guardian Agent pulls the workflow’s error analytics, reads the published and draft code, and inspects recent run inputs and outputs. When it’s done, the session moves to Ongoing and the panel populates with:
Errors analyzed — the total number of error patterns it found
Top Errors — the patterns that matter most
Coding prompt — a detailed repair instruction for any code-fixable issues
User actions — manual steps if anything requires your attention (expired tokens, missing connections, etc.)
5
Chat with the Guardian Agent
The Guardian Agent isn’t just a one-shot analyzer — it’s a chat agent you can talk to. The chat panel opens with:
Guardian AgentI analyze workflows for errors and recommend fixes.
Ask it anything about what it found. Good prompts:
“Why is this failing?”
“Show me the exact records that triggered the error.”
“What’s different between the draft and the published version?”
“Can you fix this?”
When the analysis finishes, the chat shows the Guardian’s reasoning inline and the right-hand panel fills in with a full Workflow Error Analysis Report — total errors, error type, the specific node at fault, and a step-by-step Coding Prompt describing the exact change to make:When you ask it to fix the issue, the Guardian Agent asks for your approval before doing anything:
I’ve generated a repair prompt for these issues. Would you like me to send it to the Workflow Builder Agent to fix the workflow?
The Guardian Agent never modifies your workflow without this explicit confirmation.
6
Approve the fix — the Workflow Builder Agent takes over
Reply Yes (or click the approval action) and the Guardian Agent hands the repair prompt to the Workflow Builder Agent. The Workflow Builder Agent opens the workflow, applies the code changes — typically adding the null check, adjusting the data shape, renaming the tool, whatever the fix requires — and saves a new draft.In the Guardian panel, the fix status transitions through Pending → In Progress → Applied. You can review the draft that the Workflow Builder Agent produced before publishing.
7
Publish and watch it succeed
Once you’re happy with the repaired draft, publish it. The next triggered run picks up the new version and completes successfully — the loop is closed.Back in the Guardian panel, mark the session Resolved (or let it auto-resolve once the fix status reaches Verified). The Previous Analyses list keeps the full history, so the next time someone asks “what changed?”, the answer — diagnosis, proposed fix, approval, repair, and outcome — is all in one place.
Why the loop matters
Without the Guardian Agent, the path from a failing production run back to a fix is: someone notices the red alert, opens the workflow, scrubs through run history, hypothesizes a cause, edits the code, republishes, and hopes. With the Guardian Agent, the diagnosis and the fix are generated for you, the Workflow Builder Agent applies them, and you stay in control of the approval — the whole cycle happens inside Pinkfish, in minutes, without leaving chat.
Using the Guardian Agent
Starting an Analysis
Open a workflow that has errors — or open the Notifications bell and click Review on a workflow’s error card
In the Guardian Agent panel, click How to fix it
Click Start New Analysis
The Guardian Agent begins analyzing the workflow’s error patterns
Reviewing Results
After analysis, you’ll see:
Errors analyzed — Total number of error patterns found
Error summary — List of error patterns with categories
Proposed fixes — Count of recommended fixes
Coding prompt — The repair prompt for code-fixable issues
User actions — Manual steps you need to take
Approving Repairs
When the Guardian Agent has a fix ready, it will ask for your approval:
“I’ve generated a repair prompt for these issues. Would you like me to send it to the Workflow Builder Agent to fix the workflow?”
Once you approve, the Guardian Agent sends the repair prompt to the Workflow Builder Agent, which opens the workflow and applies the code changes. This is where the self-healing loop closes — diagnosis, fix generation, and repair all happen through AI, with your approval as the gate between each step.The Guardian Agent will never invoke the Workflow Builder Agent without your explicit permission.
Continuing Previous Sessions
Each analysis creates a session that persists your results. You can:
View previous analyses for any workflow
Continue a session to ask follow-up questions
Track fix status across sessions (pending, in progress, applied, verified)
Session Status
Guardian sessions track the lifecycle of an analysis:
Status
Meaning
Active
Analysis is in progress
Ongoing
Analysis complete, fixes pending
Resolved
All fixes applied and verified
Abandoned
Analysis discontinued
What the Guardian Agent Can and Cannot Do
Can do:
Diagnose workflow errors from analytics, code, and run results
Compare draft vs. published code to detect regressions or pending fixes
Check for alternative connections when one is missing
Write comprehensive repair prompts with specific code changes
Hand off repairs to the Workflow Builder Agent (with your approval)
Track analysis sessions so you can pick up where you left off
Cannot do:
Modify workflow code directly — all code changes go through the Workflow Builder Agent
Create or change connections — it will tell you what to do
Execute workflows
Take any action without your approval
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/pinkfishai/aXo4WZLzYGCBq4ta/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=aXo4WZLzYGCBq4ta\u0026q=85\u0026s=5982b8c7681e4a4ae9b91d86646a3109","dark":"https://mintcdn.com/pinkfishai/aXo4WZLzYGCBq4ta/logo/logo-light.png?fit=max\u0026auto=format\u0026n=aXo4WZLzYGCBq4ta\u0026q=85\u0026s=7e28f108b891d7443509634519c91db1"},"favicon":"https://mintcdn.com/pinkfishai/aXo4WZLzYGCBq4ta/logo/fish.png?fit=max\u0026auto=format\u0026n=aXo4WZLzYGCBq4ta\u0026q=85\u0026s=a1e49a1bc05b6029a7f84dd799eacfd5","api":{"openapi":"api-reference/openapi.json"},"navbar":{"links":[{"href":"mailto:support@pinkfish.ai","label":"Support"}],"primary":{"type":"button","label":"Login","href":"https://app.pinkfish.ai/signin"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/getpinkfish","youtube":"https://www.youtube.com/@getpinkfish","discord":"https://discord.com/invite/HaDg7R4VZG"}},"contextual":{"options":["copy","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pinkfishai","hasAudioNarration":false,"actualSubdomain":"pinkfishai","customDomains":["docs.pinkfish.ai"],"gitSource":{"type":"github","owner":"brig-pinkfish","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af62242ff13ba6c1a19ce92","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":1113},{"language":"default","tag":"Application MCP Servers","count":1061},{"language":"default","tag":"Documentation","count":69},{"language":"default","tag":"Embedded MCP Servers","count":33},{"language":"default","tag":"genesys","count":27},{"language":"default","tag":"Workflows","count":24},{"language":"default","tag":"Agent Mode","count":15},{"language":"default","tag":"Platform API","count":14},{"language":"default","tag":"Tools","count":12},{"language":"default","tag":"Agents","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":"html{scroll-padding-top:100px}html{scroll-behavior:smooth}"}]}
{"page":{"pagePath":"orchestration/guardian-agent","slug":"/orchestration/guardian-agent","pageMetadata":{"title":"Guardian Agent","description":"Self-healing workflows — automatic error diagnosis and AI-driven repair","icon":"shield-check","href":"/orchestration/guardian-agent"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Self-healing workflows — automatic error diagnosis and AI-driven repair\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,OptimizedFrame,OptimizedImage,Step,Steps,Table}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedFrame)_missingMdxReference(`OptimizedFrame`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`what-is-the-guardian-agent`,children:`What is the Guardian Agent?`}),`\n`,_jsx(_components.p,{children:`The Guardian Agent brings self-healing capabilities to your workflows. When a workflow fails, the Guardian Agent automatically diagnoses the problem, determines the root cause, and generates a concrete fix — then hands that fix to the Workflow Builder Agent to apply the repair. The entire cycle from error detection to code fix happens through AI, with you approving each step.`}),`\n`,_jsx(_components.p,{children:`This means workflows don’t just fail and wait for someone to debug them. The Guardian Agent reads the error analytics, inspects the code, figures out what went wrong, and writes the repair — you just review and approve.`}),`\n`,_jsx(Frame,{caption:`Watch the Guardian Agent in action`,children:_jsx(OptimizedFrame,{src:`https://www.linkedin.com/embed/feed/update/urn:li:activity:7447455753046618112`,height:`570`,width:`100%`,frameborder:`0`,allowfullscreen:true,title:`Guardian Agent — self-healing workflows on Pinkfish`})}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`Prefer to watch on LinkedIn? `,_jsx(_components.a,{href:`https://www.linkedin.com/posts/getpinkfish_a-customer-told-us-something-that-stuck-activity-7447455753046618112-36-h`,children:`Open the post in a new tab`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How It Works`}),`\n`,_jsxs(_components.p,{children:[`The Guardian Agent operates in a three-stage pipeline: `,_jsx(_components.strong,{children:`diagnose → propose → repair`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`1-diagnose`,children:`1. Diagnose`}),`\n`,_jsx(_components.p,{children:`When you start a Guardian analysis, the agent:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Queries error analytics to find failure patterns, counts, and categories`}),`\n`,_jsx(_components.li,{children:`Reads the workflow structure and code to understand what each node does`}),`\n`,_jsx(_components.li,{children:`Compares draft vs. published versions to see what changed since the last deployment`}),`\n`,_jsx(_components.li,{children:`Inspects recent run results to see what data each node received and produced`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-error-categorization`,children:`2. Error Categorization`}),`\n`,_jsx(_components.p,{children:`The Guardian Agent classifies each error and determines whether it can be fixed automatically or requires manual action.`}),`\n`,_jsx(Heading,{level:`4`,id:`code-errors-auto-fixable-via-workflow-builder-agent`,children:`Code errors (auto-fixable via Workflow Builder Agent)`}),`\n`,_jsx(_components.p,{children:`Since workflows must be working before they can be published, production errors are almost always caused by real-world conditions that weren’t accounted for during development. The Guardian Agent identifies these and writes targeted fixes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Examples`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Unexpected data shapes`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`An API starts returning a new field format, an upstream node produces null where it didn’t before, an array is empty when it was always populated during testing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Unhandled edge cases`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A user record has no email, a currency field contains a string, a list has 10,000 items instead of the expected 50`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`External API changes`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A third-party API changes its response structure, adds required parameters, or deprecates an endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Volume and scale issues`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Payloads larger than expected, rate limits hit at production traffic levels, timeouts on operations that were fast in testing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Code configuration drift`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A tool name or server name was renamed, parameter requirements changed after an MCP server update`})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`resource-and-connection-errors-user-action-required`,children:`Resource and connection errors (user action required)`}),`\n`,_jsx(_components.p,{children:`These errors require manual intervention — the Guardian Agent identifies them and tells you exactly what to do:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Examples`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Recommended action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Missing connections`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`”PCID not found”, connection doesn’t exist`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Create the connection, or switch to an existing one (Guardian checks for alternatives)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Expired OAuth tokens`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`”Token expired”, “Invalid token”`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Refresh the connection’s OAuth credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Missing collections`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Collection ID not found in datastore/filestorage/vault`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Create the collection or fix the resource binding`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`External API outages`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Service unavailable, persistent timeouts`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Wait for the external service to recover`})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`draft-vs-published-comparison`,children:`Draft vs. published comparison`}),`\n`,_jsx(_components.p,{children:`The Guardian Agent also compares your current draft code against the published version. If a fix has already been made in the draft but not yet published, it will tell you — so you don’t duplicate work.`}),`\n`,_jsx(Heading,{level:`3`,id:`3-propose-and-repair`,children:`3. Propose and Repair`}),`\n`,_jsx(_components.p,{children:`For code-fixable issues, the Guardian Agent writes a detailed repair prompt — including the root cause, the affected nodes, and the specific code changes needed. Multiple issues are combined into a single prompt so everything can be fixed in one pass.`}),`\n`,_jsxs(_components.p,{children:[`With your approval, the Guardian Agent then hands this repair prompt directly to the `,_jsx(_components.strong,{children:`Workflow Builder Agent`}),`, which opens the workflow and applies the fixes automatically. You stay in control — the Guardian Agent always asks before invoking the Workflow Builder Agent, and you can review the proposed changes before they’re applied.`]}),`\n`,_jsx(_components.p,{children:`For issues that can’t be fixed by code (expired tokens, missing connections), the Guardian Agent tells you exactly what manual steps to take.`}),`\n`,_jsx(Heading,{level:`2`,id:`see-it-in-action-—-a-real-world-walkthrough`,children:`See It In Action — A Real-World Walkthrough`}),`\n`,_jsxs(_components.p,{children:[`The easiest way to understand the Guardian Agent is to watch it close the loop on an automation that is actively failing. This walkthrough takes you from `,_jsx(_components.strong,{children:`“my workflow just broke in production”`}),` to `,_jsx(_components.strong,{children:`“it’s fixed and running again”`}),` without leaving the Pinkfish app.`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Build an automation that touches real-world data`,children:[_jsxs(_components.p,{children:[`Create a workflow that calls an external API and transforms its response. In development, every record the API returns looks the same — so a snippet like `,_jsx(_components.code,{children:`items.map(x => x.email.toLowerCase())`}),` passes testing and gets published.`]}),_jsx(_components.p,{children:`Typical shapes that later cause failures in production:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A field you expected to always be present (`,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`id`}),`) is `,_jsx(_components.code,{children:`null`}),` or missing on some records`]}),`\n`,_jsx(_components.li,{children:`An upstream API adds a new field format, changes casing, or returns a string where it previously returned a number`}),`\n`,_jsx(_components.li,{children:`A list you tested with 50 items arrives with 10,000`}),`\n`,_jsx(_components.li,{children:`An MCP tool or connection is renamed after the workflow is published`}),`\n`]}),_jsx(_components.p,{children:`None of these break a workflow during the build — they only surface once real traffic hits the published version.`})]}),_jsxs(Step,{title:`Publish and let it fail`,children:[_jsxs(_components.p,{children:[`Publish the workflow and let it run against real production traffic — either on a schedule, via a trigger, or through a live integration. A record eventually comes through where `,_jsx(_components.code,{children:`email`}),` is `,_jsx(_components.code,{children:`null`}),`, the transform throws `,_jsx(_components.code,{children:`Cannot read property 'toLowerCase' of null`}),`, and the run fails.`]}),_jsx(_components.p,{children:`One failed run on its own is a blip. A pattern of failing runs is what the Guardian Agent picks up on.`})]}),_jsxs(Step,{title:`Guardian surfaces the problem in Notifications`,children:[_jsxs(_components.p,{children:[`You don’t have to go looking for errors. The `,_jsx(_components.strong,{children:`Notifications`}),` bell in the top navigation bar shows an unread count the moment a workflow starts accumulating failures from triggered runs.`]}),_jsx(Frame,{caption:`Notifications bell with unread count`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=87eb8d2dfef3227c44027960d46d94ef`,alt:`Notifications bell showing a red 15-unread badge`,\"data-og-width\":`72`,width:`72`,\"data-og-height\":`72`,height:`72`,\"data-path\":`images/guardian-agent/guardian-agent-bell-close.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=97030d496bdbc10a0ecc22b2a604870e 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=6aa24f4544fcf03e9465102c7b5a66be 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=781696a594def359b11d36509589233a 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=5c988324c25b7eabd51d8b621eeb4cd3 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=2cfe9240d37f3951b80404210713cc88 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-bell-close.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=f5ccc7e234aaa557ee614ee8d174f5c9 2500w`})}),_jsxs(_components.p,{children:[`Open the bell and you’ll see a card for each affected workflow — the workflow name, a short summary, an error count, and a `,_jsx(_components.strong,{children:`Review`}),` button:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=23cb936f7f14e89d7364b58be9f957a3`,alt:`Notifications panel showing workflow error cards`,\"data-og-width\":`1440`,width:`1440`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/guardian-agent/guardian-agent-notifications-panel.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=61097e7a064da4eaf01c8c1a58f33847 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=5507925046ec74eabd76cda01a59bf30 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=51799da53c42209ea70446fb045ad557 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=a5a0f46c49650d47adcfe5f8e0a9b210 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=829bcebff56ede4b0b5129b404be0b55 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-notifications-panel.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=ad46842ac935b284027ab0a42119aecb 2500w`}),_jsx(Frame,{caption:`A single error card — 'This workflow has encountered errors from triggered runs.'`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=ca9cdb63915fdb463db3e4c8275b6a6b`,alt:`Close-up of a Guardian error notification card with a Review button`,\"data-og-width\":`583`,width:`583`,\"data-og-height\":`186`,height:`186`,\"data-path\":`images/guardian-agent/guardian-agent-error-card-close.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=672b48ad4d013902f9007e364a4f3224 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=f12dbb380b64c5e258ee8e4fda080912 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=5310f08f28d429bfdf622d620996b5c5 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=d4767f43b4cbfa789362a49270820c28 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=7db3c09e65603142b1a43da8b5e25dff 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-error-card-close.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=b2e21cfecf43013750db9fb01850273b 2500w`})}),_jsx(_components.p,{children:`The panel mixes two scopes of notification so nothing slips through the cracks:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Workflow error cards`}),` (org-scoped) — shown to every admin/builder in the org. One card per failing workflow.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Connection error cards`}),` (user-scoped) — shown only to the connection’s owner. If your personal Google, Slack, or API connection expires, loses auth, or is revoked upstream, the card tells you which connection broke and links you straight to the connection’s settings so you can reauthorize. Because these are user-scoped, a teammate reauthorizing their own connection never clutters your panel, and vice versa.`]}),`\n`]}),_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Review`}),`. The Guardian Agent panel opens docked beside your workflow, with the affected workflow already selected and its error summary pre-loaded — `,_jsx(_components.em,{children:`“30 errors in the last 30 days”`}),`, plus the `,_jsx(_components.strong,{children:`Top Errors`}),` list grouped by pattern:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=74c819f7737e6c22abe17fc3c48ec5a7`,alt:`Guardian Agent panel showing error summary and Top Errors list`,\"data-og-width\":`1440`,width:`1440`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/guardian-agent/guardian-agent-panel-error-summary.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=d97d766101577a0fa9bc3298eaf5bf31 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=a1fe365278d44987f0e86d5744958756 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=24b1bfcb008e2c6818b605c68614ab49 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=c2e087537b7dcc654dfcf0b8ba9c4e6b 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=fb0909ee75a38c7ae95bd1987fa30992 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-panel-error-summary.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=1adc91ff2c1689fd97acf5f2b637d983 2500w`})]}),_jsxs(Step,{title:`Start a new analysis`,children:[_jsxs(_components.p,{children:[`Inside the Guardian Agent panel, click `,_jsx(_components.strong,{children:`How to fix it`}),`, then `,_jsx(_components.strong,{children:`Start New Analysis`}),`:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=ca6142adf58f651d4baffc5ec0d12bc3`,alt:`How to fix it tab with Start New Analysis call-to-action`,\"data-og-width\":`1440`,width:`1440`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/guardian-agent/guardian-agent-how-to-fix.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=3ce4871efabcec2d6ed39aab4dc5d653 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=6ac42c981258a1fdfeb402191fee3609 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=381342ab74fc1cd5208712de96f629c6 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=f194c494625f5b972af3a1682e50d978 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=ec4c3bd823d0158347fffceeca1330bd 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-how-to-fix.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=e4a25bb20e48c16fa893356e6b7a4f29 2500w`}),_jsxs(_components.p,{children:[`The button label changes to `,_jsx(_components.em,{children:`“Starting Analysis…”`}),` while the session spins up, then the chat panel opens alongside a status card that reads `,_jsx(_components.em,{children:`“Analysis in progress… The Guardian Agent is analyzing your workflow.”`})]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=980180b64a7a5f961126f7a18ac99266`,alt:`Guardian Agent chat showing the analysis kicking off`,\"data-og-width\":`1440`,width:`1440`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/guardian-agent/guardian-agent-starting-analysis.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=a6de3b6a3e566803d5715fdc7163734d 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=2593f9e7d2def5c0bab85b658025449c 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=bb99639e455f81f7a57323bd8d4d5f63 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=01916d4a7137c8d4c277a9b461ae3d9e 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=cd447db0849151e21558603b18d5bf4b 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-starting-analysis.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=1b33905338c07825ed75774a793cf24c 2500w`}),_jsxs(_components.p,{children:[`During this phase, the Guardian Agent pulls the workflow’s error analytics, reads the published and draft code, and inspects recent run inputs and outputs. When it’s done, the session moves to `,_jsx(_components.strong,{children:`Ongoing`}),` and the panel populates with:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Errors analyzed`}),` — the total number of error patterns it found`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Top Errors`}),` — the patterns that matter most`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Coding prompt`}),` — a detailed repair instruction for any code-fixable issues`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User actions`}),` — manual steps if anything requires your attention (expired tokens, missing connections, etc.)`]}),`\n`]})]}),_jsxs(Step,{title:`Chat with the Guardian Agent`,children:[_jsx(_components.p,{children:`The Guardian Agent isn’t just a one-shot analyzer — it’s a chat agent you can talk to. The chat panel opens with:`}),_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Guardian Agent`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`I analyze workflows for errors and recommend fixes.`})}),`\n`]}),_jsx(_components.p,{children:`Ask it anything about what it found. Good prompts:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“Why is this failing?”`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“Show me the exact records that triggered the error.”`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“What’s different between the draft and the published version?”`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`“Can you fix this?”`})}),`\n`]}),_jsxs(_components.p,{children:[`When the analysis finishes, the chat shows the Guardian’s reasoning inline and the right-hand panel fills in with a full `,_jsx(_components.strong,{children:`Workflow Error Analysis Report`}),` — total errors, error type, the specific node at fault, and a step-by-step `,_jsx(_components.strong,{children:`Coding Prompt`}),` describing the exact change to make:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=0c39b695f1177df8ed365a75cd0cbf69`,alt:`Guardian Agent analysis complete — chat reasoning on the left, error summary and coding prompt on the right`,\"data-og-width\":`1440`,width:`1440`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/guardian-agent/guardian-agent-analysis-complete.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?w=280\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=8d9e283825c1db536eea544fa8dd32bc 280w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?w=560\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=f6e207012114420e131504079c741c01 560w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?w=840\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=27fc5a6748718b7ada59ad5b73b79b8b 840w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=5ece09abd55138bba8f76a332f4b5551 1100w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=6eb92f739d07add93d146e39e043df4f 1650w, https://mintcdn.com/pinkfishai/6D7xVGE3rKAUk4nC/images/guardian-agent/guardian-agent-analysis-complete.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6D7xVGE3rKAUk4nC\u0026q=85\u0026s=67058b80b7f8b69b96d520fef75a3d9c 2500w`}),_jsx(_components.p,{children:`When you ask it to fix the issue, the Guardian Agent asks for your approval before doing anything:`}),_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`I’ve generated a repair prompt for these issues. Would you like me to send it to the Workflow Builder Agent to fix the workflow?`}),`\n`]}),_jsx(_components.p,{children:`The Guardian Agent never modifies your workflow without this explicit confirmation.`})]}),_jsxs(Step,{title:`Approve the fix — the Workflow Builder Agent takes over`,children:[_jsxs(_components.p,{children:[`Reply `,_jsx(_components.strong,{children:`Yes`}),` (or click the approval action) and the Guardian Agent hands the repair prompt to the `,_jsx(_components.strong,{children:`Workflow Builder Agent`}),`. The Workflow Builder Agent opens the workflow, applies the code changes — typically adding the null check, adjusting the data shape, renaming the tool, whatever the fix requires — and saves a new draft.`]}),_jsxs(_components.p,{children:[`In the Guardian panel, the fix status transitions through `,_jsx(_components.strong,{children:`Pending → In Progress → Applied`}),`. You can review the draft that the Workflow Builder Agent produced before publishing.`]})]}),_jsxs(Step,{title:`Publish and watch it succeed`,children:[_jsx(_components.p,{children:`Once you’re happy with the repaired draft, publish it. The next triggered run picks up the new version and completes successfully — the loop is closed.`}),_jsxs(_components.p,{children:[`Back in the Guardian panel, mark the session `,_jsx(_components.strong,{children:`Resolved`}),` (or let it auto-resolve once the fix status reaches `,_jsx(_components.strong,{children:`Verified`}),`). The `,_jsx(_components.strong,{children:`Previous Analyses`}),` list keeps the full history, so the next time someone asks `,_jsx(_components.em,{children:`“what changed?”`}),`, the answer — diagnosis, proposed fix, approval, repair, and outcome — is all in one place.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`why-the-loop-matters`,children:`Why the loop matters`}),`\n`,_jsx(_components.p,{children:`Without the Guardian Agent, the path from a failing production run back to a fix is: someone notices the red alert, opens the workflow, scrubs through run history, hypothesizes a cause, edits the code, republishes, and hopes. With the Guardian Agent, the diagnosis and the fix are generated for you, the Workflow Builder Agent applies them, and you stay in control of the approval — the whole cycle happens inside Pinkfish, in minutes, without leaving chat.`}),`\n`,_jsx(Heading,{level:`2`,id:`using-the-guardian-agent`,children:`Using the Guardian Agent`}),`\n`,_jsx(Heading,{level:`3`,id:`starting-an-analysis`,children:`Starting an Analysis`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open a workflow that has errors — or open the `,_jsx(_components.strong,{children:`Notifications`}),` bell and click `,_jsx(_components.strong,{children:`Review`}),` on a workflow’s error card`]}),`\n`,_jsxs(_components.li,{children:[`In the Guardian Agent panel, click `,_jsx(_components.strong,{children:`How to fix it`})]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Start New Analysis`})]}),`\n`,_jsx(_components.li,{children:`The Guardian Agent begins analyzing the workflow’s error patterns`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`reviewing-results`,children:`Reviewing Results`}),`\n`,_jsx(_components.p,{children:`After analysis, you’ll see:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Errors analyzed`}),` — Total number of error patterns found`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Error summary`}),` — List of error patterns with categories`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Proposed fixes`}),` — Count of recommended fixes`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Coding prompt`}),` — The repair prompt for code-fixable issues`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User actions`}),` — Manual steps you need to take`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`approving-repairs`,children:`Approving Repairs`}),`\n`,_jsx(_components.p,{children:`When the Guardian Agent has a fix ready, it will ask for your approval:`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`“I’ve generated a repair prompt for these issues. Would you like me to send it to the Workflow Builder Agent to fix the workflow?”`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Once you approve, the Guardian Agent sends the repair prompt to the Workflow Builder Agent, which opens the workflow and applies the code changes. This is where the self-healing loop closes — diagnosis, fix generation, and repair all happen through AI, with your approval as the gate between each step.`}),`\n`,_jsx(_components.p,{children:`The Guardian Agent will never invoke the Workflow Builder Agent without your explicit permission.`}),`\n`,_jsx(Heading,{level:`3`,id:`continuing-previous-sessions`,children:`Continuing Previous Sessions`}),`\n`,_jsx(_components.p,{children:`Each analysis creates a session that persists your results. You can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`View previous analyses for any workflow`}),`\n`,_jsx(_components.li,{children:`Continue a session to ask follow-up questions`}),`\n`,_jsx(_components.li,{children:`Track fix status across sessions (pending, in progress, applied, verified)`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`session-status`,children:`Session Status`}),`\n`,_jsx(_components.p,{children:`Guardian sessions track the lifecycle of an analysis:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Status`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Active`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Analysis is in progress`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Ongoing`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Analysis complete, fixes pending`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Resolved`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`All fixes applied and verified`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Abandoned`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Analysis discontinued`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-guardian-agent-can-and-cannot-do`,children:`What the Guardian Agent Can and Cannot Do`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Can do:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Diagnose workflow errors from analytics, code, and run results`}),`\n`,_jsx(_components.li,{children:`Compare draft vs. published code to detect regressions or pending fixes`}),`\n`,_jsx(_components.li,{children:`Check for alternative connections when one is missing`}),`\n`,_jsx(_components.li,{children:`Write comprehensive repair prompts with specific code changes`}),`\n`,_jsx(_components.li,{children:`Hand off repairs to the Workflow Builder Agent (with your approval)`}),`\n`,_jsx(_components.li,{children:`Track analysis sessions so you can pick up where you left off`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Cannot do:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Modify workflow code directly — all code changes go through the Workflow Builder Agent`}),`\n`,_jsx(_components.li,{children:`Create or change connections — it will tell you what to do`}),`\n`,_jsx(_components.li,{children:`Execute workflows`}),`\n`,_jsx(_components.li,{children:`Take any action without your approval`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Guardian Agent","description":"Self-healing workflows — automatic error diagnosis and AI-driven repair","icon":"shield-check","href":"/orchestration/guardian-agent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What is the Guardian Agent?","slug":"what-is-the-guardian-agent","depth":2,"children":[]},{"title":"How It Works","slug":"how-it-works","depth":2,"children":[{"title":"1. Diagnose","slug":"1-diagnose","depth":3,"children":[]},{"title":"2. Error Categorization","slug":"2-error-categorization","depth":3,"children":[]},{"title":"Code errors (auto-fixable via Workflow Builder Agent)","slug":"code-errors-auto-fixable-via-workflow-builder-agent","depth":4,"children":[]},{"title":"Resource and connection errors (user action required)","slug":"resource-and-connection-errors-user-action-required","depth":4,"children":[]},{"title":"Draft vs. published comparison","slug":"draft-vs-published-comparison","depth":4,"children":[]},{"title":"3. Propose and Repair","slug":"3-propose-and-repair","depth":3,"children":[]}]},{"title":"See It In Action — A Real-World Walkthrough","slug":"see-it-in-action-—-a-real-world-walkthrough","depth":2,"children":[{"title":"Why the loop matters","slug":"why-the-loop-matters","depth":3,"children":[]}]},{"title":"Using the Guardian Agent","slug":"using-the-guardian-agent","depth":2,"children":[{"title":"Starting an Analysis","slug":"starting-an-analysis","depth":3,"children":[]},{"title":"Reviewing Results","slug":"reviewing-results","depth":3,"children":[]},{"title":"Approving Repairs","slug":"approving-repairs","depth":3,"children":[]},{"title":"Continuing Previous Sessions","slug":"continuing-previous-sessions","depth":3,"children":[]}]},{"title":"Session Status","slug":"session-status","depth":2,"children":[]},{"title":"What the Guardian Agent Can and Cannot Do","slug":"what-the-guardian-agent-can-and-cannot-do","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pinkfishai","siteName":"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done","title":"Guardian Agent - Pinkfish - AI Agents \u0026 Workflows for Getting Work Done","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-15T20:27:57.347Z","originalFileLocation":"orchestration/guardian-agent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Self-healing workflows — automatic error diagnosis and AI-driven repair\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pinkfish - AI Agents \u0026amp; Workflows for Getting Work Done\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Guardian Agent - Pinkfish - AI Agents \u0026amp; Workflows for Getting Work Done\">\u003cmeta data-mint-head property=\"og:description\" content=\"Self-healing workflows — automatic error diagnosis and AI-driven repair\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pinkfish - AI Agents \u0026amp; Workflows for Getting Work Done\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pinkfish.ai/orchestration/guardian-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pinkfishai.mintlify.site/_mintlify/api/og/v2?division=Orchestration\u0026amp;title=Guardian+Agent\u0026amp;description=Self-healing+workflows+%E2%80%94+automatic+error+diagnosis+and+AI-driven+repair\u0026amp;theme=a992c00cd895a4a6b5f35340\u0026amp;signature=7103b032dad2e0f87522043cedf00cc85bff7f514c65ab38f8651d45405798d8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Guardian Agent - Pinkfish - AI Agents \u0026amp; Workflows for Getting Work Done\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Self-healing workflows — automatic error diagnosis and AI-driven repair\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pinkfishai.mintlify.site/_mintlify/api/og/v2?division=Orchestration\u0026amp;title=Guardian+Agent\u0026amp;description=Self-healing+workflows+%E2%80%94+automatic+error+diagnosis+and+AI-driven+repair\u0026amp;theme=a992c00cd895a4a6b5f35340\u0026amp;signature=7103b032dad2e0f87522043cedf00cc85bff7f514c65ab38f8651d45405798d8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pinkfishai/aVsK9pZETSZIFiG7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pinkfish - AI Agents \u0026amp; Workflows for Getting Work Done\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pinkfish.ai/orchestration/guardian-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/orchestration/guardian-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pinkfish.ai/#organization\",\"name\":\"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done\",\"url\":\"https://docs.pinkfish.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pinkfishai/aXo4WZLzYGCBq4ta/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=aXo4WZLzYGCBq4ta\u0026q=85\u0026s=5982b8c7681e4a4ae9b91d86646a3109\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pinkfish.ai#website\",\"name\":\"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done\",\"url\":\"https://docs.pinkfish.ai\",\"publisher\":{\"@id\":\"https://docs.pinkfish.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pinkfish.ai/orchestration/guardian-agent#webpage\",\"url\":\"https://docs.pinkfish.ai/orchestration/guardian-agent\",\"name\":\"Guardian Agent\",\"description\":\"Self-healing workflows — automatic error diagnosis and AI-driven repair\",\"dateModified\":\"2026-04-15T20:27:57.347Z\",\"isPartOf\":{\"@id\":\"https://docs.pinkfish.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pinkfish.ai/orchestration/guardian-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pinkfish.ai/orchestration/guardian-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orchestration\",\"item\":\"https://docs.pinkfish.ai/orchestration/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guardian Agent\",\"item\":\"https://docs.pinkfish.ai/orchestration/guardian-agent\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pinkfish.ai/orchestration/guardian-agent#article\",\"headline\":\"Guardian Agent\",\"name\":\"Guardian Agent\",\"description\":\"Self-healing workflows — automatic error diagnosis and AI-driven repair\",\"url\":\"https://docs.pinkfish.ai/orchestration/guardian-agent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pinkfish.ai/orchestration/guardian-agent#webpage\"},\"dateModified\":\"2026-04-15T20:27:57.347Z\",\"publisher\":{\"@id\":\"https://docs.pinkfish.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pinkfish.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/orchestration/guardian-agent.md","siteName":"Pinkfish - AI Agents \u0026 Workflows for Getting Work Done","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Welcome!","href":"/introduction"}]},{"group":"Coworker","icon":"handshake","pages":[{"title":"Getting Started with Coworker","sidebarTitle":"Getting Started","icon":"handshake","href":"/coworker/overview"},{"title":"Saved Actions","icon":"bookmark","href":"/coworker/saved-actions"}]},{"group":"Workflows","icon":"diagram-project","pages":[{"group":"Agent Mode","icon":"bolt","pages":[{"title":"Agent Mode","icon":"bolt","href":"/agentic-editor/overview"},{"title":"Canvas","icon":"diagram-project","href":"/agentic-editor/canvas"},{"title":"Coding Agent Chat","icon":"comments","href":"/agentic-editor/chat"},{"title":"Adding Nodes","icon":"square-plus","href":"/agentic-editor/adding-nodes"},{"title":"Node Types","icon":"cubes","href":"/agentic-editor/node-types"},{"title":"Triggers","icon":"bolt","href":"/agentic-editor/triggers"},{"title":"Interface Builder","icon":"window-maximize","href":"/agentic-editor/interface"},{"title":"Editor Tabs","icon":"table-columns","href":"/agentic-editor/editor-tabs"},{"title":"Split View","icon":"table-columns","href":"/agentic-editor/split-view"},{"title":"Running a Workflow","icon":"play","href":"/agentic-editor/running"},{"title":"Mock Mode \u0026 Node Pinning","icon":"thumbtack","href":"/agentic-editor/mock-mode-and-pinning"},{"title":"Releases \u0026 Version History","icon":"rocket","href":"/agentic-editor/releases"},{"title":"Workflow Actions Menu","icon":"ellipsis-vertical","href":"/agentic-editor/actions-menu"},{"title":"Sticky Notes \u0026 Canvas Customization","icon":"note-sticky","href":"/agentic-editor/sticky-notes-and-canvas"},{"title":"Monitor Tab","icon":"chart-line","href":"/agentic-editor/monitor"}]},{"group":"Guided Mode","icon":"wand-magic-sparkles","pages":[{"title":"Guided Editor","icon":"wand-magic-sparkles","href":"/guided-editor/overview"}]},{"group":"Triggers","icon":"play","pages":[{"title":"Event Triggers","icon":"bolt","href":"/triggers/event-triggers"},{"title":"Email Triggers","icon":"envelope","href":"/triggers/email-triggers"},{"title":"Verified Inputs","icon":"user-shield","href":"/triggers/verified-inputs"}]},{"title":"Library","icon":"book-open","href":"/workflows/library"},{"title":"Templates","icon":"copy","href":"/workflows/templates"},{"title":"Duplication","icon":"copy","href":"/workflows/duplication"},{"title":"Dev/Stage/Prod Promotion","icon":"arrow-up-right-dots","href":"/workflows/promotion"},{"title":"Workflow FAQs","icon":"circle-question","href":"/workflows/faqs"}]},{"group":"Agents","icon":"robot","pages":[{"title":"AI Agents","icon":"robot","href":"/agents/introduction"},{"title":"My Agents","icon":"table-list","href":"/agents/my-agents"},{"title":"Agent Builder","icon":"wrench","href":"/agents/agent-builder"},{"title":"Instructions tab","icon":"scroll","href":"/agents/instructions"},{"title":"Tools tab","icon":"screwdriver-wrench","href":"/agents/tools"},{"title":"Resources tab","icon":"folder","href":"/agents/resources"},{"title":"Channels tab","icon":"radio","href":"/agents/channels"},{"title":"Monitor tab","icon":"chart-line","href":"/agents/monitor"},{"title":"Advanced tab","icon":"sliders","href":"/agents/advanced"},{"title":"Save \u0026 Release","icon":"rocket","href":"/agents/releases"},{"title":"MCPs (Model Context Protocol)","icon":"server","href":"/agents/mcps"}]},{"group":"Tools","icon":"toolbox","pages":[{"title":"Tools","icon":"wrench","href":"/tools/overview"},{"title":"Skills","icon":"graduation-cap","href":"/tools/skills"},{"group":"MCPs","icon":"server","pages":[{"title":"Connections","icon":"plug","href":"/tools/connections"},{"title":"Connect Workday with an Integration System User","sidebarTitle":"Workday service account","icon":"key","href":"/tools/workday-service-account"},{"title":"Tool Sharing and Identity","icon":"fingerprint","href":"/tools/sharing-and-identity"},{"title":"Embedded Services","icon":"puzzle-piece","href":"/tools/embedded-services"},{"title":"Custom MCP Servers","icon":"server","href":"/tools/custom-mcp-servers"}]},{"group":"Resources","icon":"database","pages":[{"title":"Database","icon":"database","href":"/resources/database"},{"title":"File Store","icon":"folder-open","href":"/resources/file-store"},{"title":"Knowledge Base","icon":"brain","href":"/resources/knowledge-base"},{"title":"Vault","icon":"shield","href":"/resources/vault"}]},{"group":"Browser","icon":"window-maximize","pages":[{"title":"Browser Login","icon":"browser","href":"/tools/browser-login"}]}]},{"group":"Organization","icon":"building","pages":[{"title":"Organization, Users \u0026 Roles","icon":"play","href":"/organization/overview"},{"title":"IP Allow List","icon":"shield-check","href":"/organization/ip-allow-list"},{"title":"Sharing","icon":"share","href":"/organization/sharing"},{"title":"Bring Your Own Model (BYOM)","icon":"microchip-ai","href":"/organization/byom"},{"group":"Settings","icon":"gear","pages":[{"title":"Personal Settings","icon":"user-gear","href":"/organization/settings-personal"},{"title":"Organization Settings","icon":"building-shield","href":"/organization/settings-organization"},{"title":"Customization Settings","icon":"palette","href":"/organization/settings-customization"}]}]},{"group":"Channels","icon":"comments","pages":[{"title":"Slack","icon":"slack","href":"/channels/slack"},{"title":"Microsoft Teams","icon":"microsoft","href":"/channels/microsoft-teams"}]},{"group":"Orchestration","icon":"sitemap","pages":[{"title":"Orchestration","icon":"network-wired","href":"/orchestration/overview"},{"title":"Workflow Monitor","icon":"chart-line","href":"/orchestration/monitor"},{"title":"Agent Monitor","description":"Track and analyze Agent conversations and interactions","icon":"robot","href":"/orchestration/agent-monitor"},{"title":"Guardian Agent","icon":"shield-check","href":"/orchestration/guardian-agent"},{"title":"Queue Service","description":"Manage and orchestrate your automation workflows with queuing system","icon":"list-check","href":"/orchestration/queue"},{"title":"Batch Service","icon":"layer-group","href":"/orchestration/batching"},{"title":"Human-in-the-Loop Workflows","icon":"user-check","href":"/orchestration/human-in-the-loop"}]},{"group":"Billing","icon":"credit-card","pages":[{"title":"Limits","icon":"gauge-max","href":"/billing/limits"},{"title":"Credits","icon":"coins","href":"/billing/credits"}]},{"group":"Terms","icon":"file-contract","pages":[{"title":"Pinkfish Master Services Agreement","sidebarTitle":"AppFoundry","href":"/support/appfoundry-terms"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/platform/overview"}]}]},"basePath":"","title":"Guardian Agent - Pinkfish - AI Agents \u0026 Workflows for Getting Work Done","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CUYDhsh7.js","DynamicMarkdown-D8KwOkxZ.js","zoom-image-lightbox-lceUjs6n.js","lightbox-handle-r17bVUz3.js"]}