The problem
Any business that installs, builds or ships against third party approvals gets a stream of emails from utilities, councils and inspectors, each in its own format and each needing a different next step. When those emails pile up in a shared inbox, a project can sit for weeks because nobody saw that the authority asked for one correction.
Architecture
- Channel
- Permit inbox
- Utility and council emails
- Agent
- Claude Agent SDK agent
- Sorts and extracts
- Tools
- Company CRM
- Handoff queue
- Human
- Team decides the handoffs
Where the data stays: Emails stay in your inbox; only the fields the next step needs go to your own CRM and handoff queue.
Design flow
- Permit email arrives from an authority
- Agent sorts it into a category
- Project, deadline and amount pulled out
- Routine category: next step taken in the CRM
- Unusual or needs a decision: a person decidesHuman checkpoint
Setup
Total time: 10 h our estimate
- 2 h
Done when: From three months of exported authority emails you have a list: inspection, receipt, payment, correction, approval, other, each with the CRM step it triggers.
- 1 h 30 min
Done when: A test email to the permit inbox starts an agent run, and the run shows in your log with the email attached.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
The starter prompt opens with the members steps above.
Risks and data
Data
Permit emails name customers, their addresses and sometimes meter or account numbers. Extract only what the next step needs, keep the handoff queue visible to the project team only, and check the AI vendor's data processing terms before production emails go through it.
How it goes wrong
A wrong category takes the wrong CRM step, or a correction request is treated as routine and the project stalls again. Classify only first, actions one category at a time, a handoff whenever in doubt, and the agent never replies to the authority. The source does not say how its 71% is measured, so track your own share.
How the agent works
It starts
Each permit email from a utility or municipality lands with the agent in real time.
The agent works
The agent, built on the Claude Agent SDK, reads it and sorts it into a category: inspection communication, receipt confirmation, payment requirement, correction request, approval notification and a few more. It extracts the details that matter for that category, such as the project, the deadline and what the authority wants, and takes the next step that category calls for in the company's CRM, where scheduling, task completion and file analysis also run. When the case is unusual or the next step needs a decision, it hands the case to a person with the extracted details attached, so the human work shrinks to the decision. A backfill run over the old inbox surfaces emails that were never handled.
The result
The operations lead reviews the handoff queue daily and watches the share of emails that needed no human touch.
Worked example
Freedom Forever, a residential solar installer in North America with a 50 person software and product team, needs permits from utilities and municipalities for every installation, and hundreds of utilities email about them daily. Anthropic's customer story says the permit email agent processed about 19,000 emails in its first month in production, that about 71% of emails are fully processed without human intervention, and that each run costs USD 0.20 to 0.35 and completes in about two minutes. A backfill found emails that had sat unprocessed for an average of three weeks and moved a couple dozen stalled customer projects forward. The team picked the Claude Agent SDK after a benchmark on eight mock permit sites where it passed 39 of 40 runs. The story does not say how the 71% is measured, so track your own share from day one.
The email sorting and extraction is a custom build, so the same steps run on OpenAI or Gemini models with your own code. Freedom Forever chose the Claude Agent SDK after a benchmark of form filling on mock permit websites, which matters only if your agent also has to submit on authority portals.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
Published: 2026-10-30