Skip to main content

How it works

Attach a JSON schema to an inbox. Every inbound email is automatically processed by an LLM that extracts the fields you defined. The extracted data arrives in your webhook payload alongside the raw email. No parsing code required. No regex. No custom prompt engineering.

Step 1: Configure an extraction schema

Step 2: Use the extracted data in your webhook

When an email arrives, the webhook payload includes an extractedData field:
Use it directly in your agent logic:

Schema design tips

Write specific descriptions. The LLM uses your field descriptions when extracting. "Order or reference number mentioned in the email" is better than "order number". Use enums for categorical fields. Enums constrain the output to valid values. ["billing", "technical", "general"] ensures you always get one of those three strings. Keep schemas focused. Extract what you need for routing and processing. Don’t try to extract everything — the LLM is more accurate on targeted schemas. Test with edge cases. Send test emails that don’t contain the fields you’re extracting. The extractor returns null for missing fields, not an error.

What happens if extraction fails

If the LLM extraction fails for any reason, the webhook is still delivered. The extractedData field will be null or missing. Your webhook handler should treat extractedData as optional.

Structured Extraction

Full reference for configuring JSON schemas and using extracted data in your agent.

Support Agent Example

Complete agent implementation using structured extraction for intent-based routing.
Last modified on March 19, 2026