AI & RAG
Verify a rewritten article actually fixes its retrieval misses after publish
When a help article is updated in Intercom, replays the historical user phrasings that previously missed it and confirms retrieval now ranks the article first; if it still…
How it runs
The automated pipeline, trigger to output.
- TriggerIntercom article-updated webhookIntercom
- ActionLoad article's historical missed phrasingsPostgres
- ActionRe-run retrieval scoring on new contentOpenAI
- LogicBranch on whether all phrasings now rank top
- OutputReopen Linear ticket if still missingLinear
What it does
It closes the loop on article fixes. When an article is published or edited in Intercom, the workflow replays the real user phrasings that previously failed to retrieve it and checks whether the updated content now ranks first. This proves the rewrite worked instead of assuming it did.
When to use it
Use it right after you ship article rewrites driven by your retrieval audits. It prevents 'fixed' articles from silently still missing the queries they were supposed to catch, and it keeps your Linear board honest.
How it works
- 1An Intercom webhook fires when an article is published or updated.
- 2Load that article's historical missed phrasings from Postgres.
- 3An OpenAI step re-runs retrieval scoring for each phrasing against the updated content.
- 4A logic branch checks whether the article now ranks top for every phrasing.
- 5If all pass, mark the Postgres record resolved and the loop ends.
- 6If any still miss, reopen the Linear ticket with the remaining failing phrasings and current ranks.
Set it up
What you configure once, before turning it on.
- 1Connect IntercomConversations, contacts, articles.
- 2Connect PostgresAny Postgres URL — query, write, migrate.
- 3Connect OpenAIModels, embeddings, files.
- 4Connect LinearIssues, projects, cycles, triage.
- 5Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 6Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 7Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More AI & RAG workflows
Publish a Grounded API FAQ Page to Confluence Weekly
Each week, clusters the top unanswered or repeated API questions, generates spec-grounded answers with citations.
Detect Breaking API Changes from Spec Diffs and Alert Owners
Compares the new OpenAPI spec against the previous version on each GitLab merge, uses retrieval over the changelog to classify whether changes are breaking.
Pre-meeting prep brief grounded in Coda and CRM
Before each booked sales meeting, builds a one-page prep brief by combining the account's HubSpot context with grounded talking points and objection responses pulled from your…
Coda-grounded sales answer bot with citations in Slack
Reps ask product, pricing, or competitive questions in Slack and get an answer drawn only from your Coda knowledge hub, with links to the exact docs and rows it pulled from.
Weekly knowledge-gap digest from unanswered rep questions
Each week, scans rep questions the answer bot couldn't ground in Coda, clusters the recurring gaps.
RFP and security questionnaire drafter grounded in Coda
Drafts answers to inbound RFP and security questionnaire questions by retrieving approved language from your Coda hub, then files the cited draft for review before a rep sends it.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
