Workflow Spec Builder
Takes any amount of raw input — notes, a meeting summary, a rough description, bullet points, a wall of text — and synthesizes it into a clean, structured workflow spec. Output is formatted text ready to paste directly into a Google Doc.
This is a two-phase process: verify first, then write. Before producing the spec, run live queries against Salesforce (and Snowflake if relevant) to confirm that objects, fields, and records actually exist and return the expected shape. The spec is only as good as the data it's built on.
Target length: 3–5 pages when pasted into Google Docs. A spec is a decision-making tool, not a design document. Every section should be as short as it can be while still being actionable. If a section is running long, cut — don't compress into dense prose. The Process Steps section is the one exception: it may run longer if the workflow has many steps, but each step should still be scannable in under 30 seconds.
Input
Whatever the user provides. Could be:
A rough description of a workflow they're planning
Notes from a meeting where a workflow was discussed
A bullet list of ideas
A full draft that needs restructuring
A mix of all of the above
Read it all. Extract every relevant detail. Then verify before writing.
Phase 0 — Verify Data Before Writing
Before writing a single line of the spec, identify every Salesforce object, field, or record set the workflow will touch and verify each one with a live query. This is mandatory — never write a field name, query, or record count into the spec from memory or inference alone.
What to verify
For each object or concept mentioned in the input (e.g. "active BDRs", "accounts owned by this rep", "open opportunities"), run the simplest query that confirms:
The object and fields exist and are accessible
The field contains the values you expect (e.g. does UserRole actually contain "AMER BDR"?)
The record count — how many rows does the query return?
How to report verification results
Before the spec output, show a brief verification summary in the conversation:
Data Verification
✅ User WHERE Profile.Name = 'BDR' AND IsActive = true → 9 records returned
Sample values: Allyson Peters, Ashlynn Green, ...
✅ Account.BDR__c field exists → populated on 847 of 1,203 accounts queried
Note: ~30% of accounts have no BDR assigned
⚠️ Account.X6sense_Account_Reach_Score__c exists → values are: "High", "Medium", "Low", null
Confirm: is "High" the only value worth scoring, or should "Medium" score too?
❌ Account.Factors_AI_Engagement_Level__c → field not found on this object
Ask: is this field on a related object, or is the field name different?