Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.
Give a routine its own secret webhook URL, point an inbox at it, and every
matching email automatically starts a run. This tutorial walks the whole path
end to end. For field-by-field reference, see
Email triggers; for payload formats and
HMAC signing, see Email intake.Before you start
A routine you can edit (this guide creates one), with the workflows (write) right.
An email source you can add a forwarding rule or webhook to (your mail
provider, a mail-to-webhook bridge, or any HTTP client).
1
Create a routine
Build the routine that should run for each email. Give it a name and the
steps to perform — the incoming email arrives as the variables
{email_from}, {email_subject} and {email_body}, and any attachments are
added to the run’s session so a step can read them.
Create a routine and give it the steps to run for each email.
2
Enable the email trigger and copy the webhook URL
Open the routine’s Triggers → Email section and turn on
Start this routine when an email arrives. IMP generates a per-trigger
secret webhook URL:
POST {BACKEND}/webhooks/routine/{secret}
Copy it — you’ll point your inbox at it next. The trigger must stay enabled
for deliveries to start runs.
Toggle the email trigger on, then copy the generated webhook URL.
3
Point your email at the webhook
Send matching mail to the webhook URL using whatever your provider supports —
a forwarding rule, a mail-to-webhook bridge, or a direct HTTP call. IMP
accepts raw MIME, multipart/form-data, or JSON. A quick test with curl:
An accepted delivery returns 200 and queues a run. See
Email intake for the full payload formats and
HMAC signature details.
Point any inbox or HTTP client at the webhook URL to start a run.
4
Lock it down
Before going live, tighten the guard chain in the same Email trigger section:
Allowed senders — an allowlist (exact addresses or *@domain); mail
from anyone else is filtered out.
Filter rules — only start runs for mail matching your patterns (for
example, subject contains invoice).
Signing secret — generate an HMAC secret and have your sender sign
deliveries so only authentic requests are accepted.
Rate limits — per-trigger and per-sender hourly caps protect the
routine from floods.
A run only starts when the trigger is enabled, the sender is
allowlisted, and the mail passes your filters. Deliveries that fail
a guard are recorded as filtered runs so you can see what was dropped.
5
Watch it run
Each accepted email appears in the routine’s Runs list with its trigger,
subject, duration, and token/cost. Open a run’s session to read the
transcript — and to answer any tool approvals the agent pauses on.
Runs appear with tokens and cost; open a session to review it or answer approvals.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"IMP Docs","description":"Documentation for IMP — the Intelligence Management Platform.","colors":{"primary":"#6f9a37","light":"#cef79e","dark":"#557a26"},"logo":{"light":"https://mintcdn.com/exulu/AoxglAoKLnpiSWrg/logo/imp-wordmark-light.svg?fit=max\u0026auto=format\u0026n=AoxglAoKLnpiSWrg\u0026q=85\u0026s=9b42068ec92bdc8c9edbfd0a097c1103","dark":"https://mintcdn.com/exulu/AoxglAoKLnpiSWrg/logo/imp-wordmark-dark.svg?fit=max\u0026auto=format\u0026n=AoxglAoKLnpiSWrg\u0026q=85\u0026s=a84a8146d264791641105aafa8cfce99"},"favicon":"https://mintcdn.com/exulu/AoxglAoKLnpiSWrg/logo/imp-icon.svg?fit=max\u0026auto=format\u0026n=AoxglAoKLnpiSWrg\u0026q=85\u0026s=7ac4f534736be19d46aa980180530371","background":{"color":{"light":"#f8f6f1","dark":"#1b1714"}},"footer":{"links":[{"header":"IMP","items":[{"label":"Intelligence Management Platform","href":"/get-started/what-is-imp"}]}]},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"exulu","hasAudioNarration":false,"actualSubdomain":"exulu","customDomains":["docs.intelligence-management-platform.com"],"gitSource":{"type":"github","owner":"qventu","repo":"exulu-backend","deployBranch":"main","contentDirectory":"mintlify-docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6ad7083d07bd205c1a9ff19c","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":101},{"language":"default","tag":"REST","count":73},{"language":"default","tag":"Developers","count":54},{"language":"default","tag":"Building","count":24},{"language":"default","tag":"Core classes","count":24},{"language":"default","tag":"Core types","count":23},{"language":"default","tag":"User Guide","count":21},{"language":"default","tag":"Self-Hosting","count":16},{"language":"default","tag":"Skills","count":16},{"language":"default","tag":"Chat","count":15}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"@font-face{font-family:\"Aspekta\";font-style:normal;font-weight:400;src:url(\"/fonts/inter-tight-400.woff2\") format(\"woff2\");font-display:swap}@font-face{font-family:\"Aspekta\";font-style:normal;font-weight:500;src:url(\"/fonts/inter-tight-500.woff2\") format(\"woff2\");font-display:swap}@font-face{font-family:\"RobotoMono\";font-style:normal;font-weight:400;src:url(\"/fonts/roboto-mono-400.woff2\") format(\"woff2\");font-display:swap}:root{--imp-bone: #f8f6f1;--imp-ink: #222f30;--imp-void: #1b1714;--imp-tissue: #efece4;--imp-lime: #cef79e;--imp-olive: #6f9a37;--imp-hair-light: #e4ddd0;--imp-hair-dark: #4d5757}body{font-family:\"Aspekta\", \"Inter Tight\", system-ui, sans-serif;letter-spacing:-0.011em}h1,h2,h3,h4{font-family:\"Aspekta\", \"Inter Tight\", system-ui, sans-serif;font-weight:500;letter-spacing:-0.03em}code,pre,kbd,samp{font-family:\"RobotoMono\", \"Roboto Mono\", ui-monospace, monospace}*,*::before,*::after{border-radius:0!important}"}],"page":{"pagePath":"building/routines/email-integration","slug":"/building/routines/email-integration","pageMetadata":{"title":"Turn emails into automated runs","description":"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.","icon":"mail-plus","href":"/building/routines/email-integration"},"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: \"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.\"\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];const RightsCallout=({right,flags})=>{const{Info}=_provideComponents()||{};if(!Info)_missingMdxReference(`Info`,true);return _jsxs(Info,{children:[`Who sees this: requires `,right===`none`?`no special rights — available to every signed-in user`:`the ${right} right (or super admin)`,`.`,flags\u0026\u0026flags!==`none`?` Only visible when the server enables ${flags}.`:``]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Step,Steps,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`RightsCallout`,children:_jsx(RightsCallout,{right:`workflows (write)`})}),`\n`,_jsxs(_components.p,{children:[`Give a routine its own secret webhook URL, point an inbox at it, and every\nmatching email automatically starts a run. This tutorial walks the whole path\nend to end. For field-by-field reference, see\n`,_jsx(_components.a,{href:`/building/routines/email-triggers`,children:`Email triggers`}),`; for payload formats and\nHMAC signing, see `,_jsx(_components.a,{href:`/administration/email-intake`,children:`Email intake`}),`.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Before you start`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A routine you can edit (this guide creates one), with the `,_jsx(_components.code,{children:`workflows (write)`}),` right.`]}),`\n`,_jsx(_components.li,{children:`An email source you can add a forwarding rule or webhook to (your mail\nprovider, a mail-to-webhook bridge, or any HTTP client).`}),`\n`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create a routine`,children:[_jsxs(_components.p,{children:[`Build the routine that should run for each email. Give it a name and the\nsteps to perform — the incoming email arrives as the variables\n`,_jsx(_components.code,{children:`{email_from}`}),`, `,_jsx(_components.code,{children:`{email_subject}`}),` and `,_jsx(_components.code,{children:`{email_body}`}),`, and any attachments are\nadded to the run’s session so a step can read them.`]}),_jsx(Frame,{caption:`Create a routine and give it the steps to run for each email.`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,src:`https://mintcdn.com/exulu/m9ZnY2kgnq83hCC9/videos/routine-email-create.mp4?fit=max\u0026auto=format\u0026n=m9ZnY2kgnq83hCC9\u0026q=85\u0026s=2fe658d9ee1a7dc0ba06ba1fd0f3113b`,\"data-path\":`videos/routine-email-create.mp4`})})]}),_jsxs(Step,{title:`Enable the email trigger and copy the webhook URL`,children:[_jsxs(_components.p,{children:[`Open the routine’s `,_jsx(_components.strong,{children:`Triggers → Email`}),` section and turn on\n`,_jsx(_components.strong,{children:`Start this routine when an email arrives`}),`. IMP generates a per-trigger\nsecret webhook URL:`]}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST {BACKEND}/webhooks/routine/{secret}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`Copy it — you’ll point your inbox at it next. The trigger must stay enabled\nfor deliveries to start runs.`}),_jsx(Frame,{caption:`Toggle the email trigger on, then copy the generated webhook URL.`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,src:`https://mintcdn.com/exulu/m9ZnY2kgnq83hCC9/videos/routine-email-config.mp4?fit=max\u0026auto=format\u0026n=m9ZnY2kgnq83hCC9\u0026q=85\u0026s=2136041aecf8abf20f6bfec205b1aeae`,\"data-path\":`videos/routine-email-config.mp4`})})]}),_jsxs(Step,{title:`Point your email at the webhook`,children:[_jsxs(_components.p,{children:[`Send matching mail to the webhook URL using whatever your provider supports —\na forwarding rule, a mail-to-webhook bridge, or a direct HTTP call. IMP\naccepts raw MIME, `,_jsx(_components.code,{children:`multipart/form-data`}),`, or JSON. A quick test with `,_jsx(_components.code,{children:`curl`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BACKEND`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/webhooks/routine/{secret}\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"from\":\"a@acme.com\",\"subject\":\"Invoice 8842\",\"text\":\"See attached.\"}'`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`An accepted delivery returns `,_jsx(_components.code,{children:`200`}),` and queues a run. See\n`,_jsx(_components.a,{href:`/administration/email-intake`,children:`Email intake`}),` for the full payload formats and\nHMAC signature details.`]}),_jsx(Frame,{caption:`Point any inbox or HTTP client at the webhook URL to start a run.`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,src:`https://mintcdn.com/exulu/m9ZnY2kgnq83hCC9/videos/routine-email-send.mp4?fit=max\u0026auto=format\u0026n=m9ZnY2kgnq83hCC9\u0026q=85\u0026s=baac6e01b2cd3921c8aa2076f3ba097f`,\"data-path\":`videos/routine-email-send.mp4`})})]}),_jsxs(Step,{title:`Lock it down`,children:[_jsx(_components.p,{children:`Before going live, tighten the guard chain in the same Email trigger section:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Allowed senders`}),` — an allowlist (exact addresses or `,_jsx(_components.code,{children:`*@domain`}),`); mail\nfrom anyone else is filtered out.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Filter rules`}),` — only start runs for mail matching your patterns (for\nexample, subject contains `,_jsx(_components.code,{children:`invoice`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Signing secret`}),` — generate an HMAC secret and have your sender sign\ndeliveries so only authentic requests are accepted.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rate limits`}),` — per-trigger and per-sender hourly caps protect the\nroutine from floods.`]}),`\n`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`A run only starts when the trigger is `,_jsx(_components.strong,{children:`enabled`}),`, the sender is\n`,_jsx(_components.strong,{children:`allowlisted`}),`, and the mail passes your `,_jsx(_components.strong,{children:`filters`}),`. Deliveries that fail\na guard are recorded as `,_jsx(_components.code,{children:`filtered`}),` runs so you can see what was dropped.`]})})]}),_jsxs(Step,{title:`Watch it run`,children:[_jsxs(_components.p,{children:[`Each accepted email appears in the routine’s `,_jsx(_components.strong,{children:`Runs`}),` list with its trigger,\nsubject, duration, and token/cost. Open a run’s session to read the\ntranscript — and to answer any tool approvals the agent pauses on.`]}),_jsx(Frame,{caption:`Runs appear with tokens and cost; open a session to review it or answer approvals.`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,src:`https://mintcdn.com/exulu/m9ZnY2kgnq83hCC9/videos/routine-email-run.mp4?fit=max\u0026auto=format\u0026n=m9ZnY2kgnq83hCC9\u0026q=85\u0026s=de9fe33a9f1cbca078c84866b07d0ad8`,\"data-path\":`videos/routine-email-run.mp4`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No run appears`}),` — confirm the trigger is enabled and the sender is on the\nallowlist; check the Runs list for a `,_jsx(_components.code,{children:`filtered`}),` entry explaining the drop.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Signature rejected`}),` — the HMAC secret on your sender must match the one\ngenerated here; regenerating the secret invalidates the old one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Attachments missing`}),` — send them as parts of the delivery (MIME or\n`,_jsx(_components.code,{children:`multipart/form-data`}),`); they’re attached to the run’s session.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/building/routines/email-triggers`,children:`Email triggers`}),` — the full trigger reference.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/administration/email-intake`,children:`Email intake`}),` — payload formats and HMAC signing.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/building/routines/runs-and-schedules`,children:`Runs \u0026 schedules`}),` — managing and re-running runs.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{RightsCallout,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":"Turn emails into automated runs","description":"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.","icon":"mail-plus","href":"/building/routines/email-integration"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[149,506,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"exulu","siteName":"IMP Docs","title":"Turn emails into automated runs - IMP Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-29T09:14:42.224Z","originalFileLocation":"building/routines/email-integration.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=\"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.\">\u003cmeta data-mint-head name=\"application-name\" content=\"IMP Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_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/exulu/N9cNIKTf5pwOldAi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Turn emails into automated runs - IMP Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"IMP Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.intelligence-management-platform.com/building/routines/email-integration\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://exulu.mintlify.site/_mintlify/api/og/v2?division=Routines\u0026amp;title=Turn+emails+into+automated+runs\u0026amp;description=Connect+an+inbox+to+a+routine+so+every+matching+email+automatically+starts+a+run+%E2%80%94+create+the+routine%2C+wire+up+the+webhook%2C+lock+it+down%2C+and+watch+it+work.\u0026amp;theme=0a86c3c8bb60ae0aa06a3652\u0026amp;signature=3dacd01e258f716cb6ae9ca54fb16bc76f48a724a809480e20415528d55d31e8\">\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=\"Turn emails into automated runs - IMP Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://exulu.mintlify.site/_mintlify/api/og/v2?division=Routines\u0026amp;title=Turn+emails+into+automated+runs\u0026amp;description=Connect+an+inbox+to+a+routine+so+every+matching+email+automatically+starts+a+run+%E2%80%94+create+the+routine%2C+wire+up+the+webhook%2C+lock+it+down%2C+and+watch+it+work.\u0026amp;theme=0a86c3c8bb60ae0aa06a3652\u0026amp;signature=3dacd01e258f716cb6ae9ca54fb16bc76f48a724a809480e20415528d55d31e8\">\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/exulu/N9cNIKTf5pwOldAi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"IMP Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6f9a37\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.intelligence-management-platform.com/building/routines/email-integration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/building/routines/email-integration.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.intelligence-management-platform.com/#organization\",\"name\":\"IMP Docs\",\"url\":\"https://docs.intelligence-management-platform.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/exulu/AoxglAoKLnpiSWrg/logo/imp-wordmark-light.svg?fit=max\u0026auto=format\u0026n=AoxglAoKLnpiSWrg\u0026q=85\u0026s=9b42068ec92bdc8c9edbfd0a097c1103\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.intelligence-management-platform.com#website\",\"name\":\"IMP Docs\",\"url\":\"https://docs.intelligence-management-platform.com\",\"publisher\":{\"@id\":\"https://docs.intelligence-management-platform.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration#webpage\",\"url\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration\",\"name\":\"Turn emails into automated runs\",\"description\":\"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.\",\"dateModified\":\"2026-07-29T09:14:42.224Z\",\"isPartOf\":{\"@id\":\"https://docs.intelligence-management-platform.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Routines\",\"item\":\"https://docs.intelligence-management-platform.com/building/routines/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Turn emails into automated runs\",\"item\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration#article\",\"headline\":\"Turn emails into automated runs\",\"name\":\"Turn emails into automated runs\",\"description\":\"Connect an inbox to a routine so every matching email automatically starts a run — create the routine, wire up the webhook, lock it down, and watch it work.\",\"url\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration\",\"mainEntityOfPage\":{\"@id\":\"https://docs.intelligence-management-platform.com/building/routines/email-integration#webpage\"},\"dateModified\":\"2026-07-29T09:14:42.224Z\",\"publisher\":{\"@id\":\"https://docs.intelligence-management-platform.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.intelligence-management-platform.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"IMP Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"IMP Docs","nav":{"global":null,"tabs":[{"tab":"Get Started","icon":"rocket","pages":[{"title":"Get Started","href":""}]},{"tab":"User Guide","icon":"message-square","pages":[{"title":"User Guide","href":"/user-guide/chat/overview"}]},{"tab":"Building","icon":"hammer","groups":[{"group":"Agents","pages":[{"title":"Agents overview","icon":"bot","href":"/building/agents/overview"},{"title":"Agent workbench","icon":"settings","href":"/building/agents/workbench"},{"title":"Tools and skills","icon":"wrench","href":"/building/agents/tools-and-skills"},{"title":"Access","icon":"shield","href":"/building/agents/access-and-safety"},{"title":"Guest Access","icon":"door-open","href":"/building/agents/guest-access"},{"title":"Knowledge search","icon":"magnifying-glass","href":"/building/agents/knowledge-search"}]},{"group":"Knowledge","pages":[{"title":"Knowledge overview","icon":"brain","href":"/building/knowledge/overview"},{"title":"Items","icon":"list","href":"/building/knowledge/items"},{"title":"Bulk import","icon":"upload","href":"/building/knowledge/bulk-import"},{"title":"Pipeline","icon":"workflow","href":"/building/knowledge/pipeline"},{"title":"Entities","icon":"tag","href":"/building/knowledge/entities"}]},{"group":"Memory","pages":[{"title":"Memory area","icon":"bookmark","href":"/building/memory/overview"}]},{"group":"Prompts \u0026 Skills","pages":[{"title":"Prompts","icon":"clipboard-type","href":"/building/prompts"},{"title":"Skills overview","icon":"sparkles","href":"/building/skills/overview"},{"title":"Editing and versions","icon":"file-code","href":"/building/skills/editing-and-versions"},{"title":"Connect your agent","icon":"terminal","href":"/building/skills/connect-your-agent"}]},{"group":"Routines","pages":[{"title":"Routines overview","icon":"clipboard-list","href":"/building/routines/overview"},{"title":"Email triggers","description":"Give a routine a per-trigger secret webhook URL so that every matching inbound email automatically starts a run.","icon":"mail","href":"/building/routines/email-triggers"},{"title":"Turn emails into automated runs","icon":"mail-plus","href":"/building/routines/email-integration"},{"title":"Runs and schedules","description":"View run history, set a cron schedule, manage the queue, edit conversation steps, control access, and delete a routine.","icon":"calendar","href":"/building/routines/runs-and-schedules"}]},{"group":"Evals","pages":[{"title":"Evals overview","icon":"book-check","href":"/building/evals/overview"},{"title":"Test cases","icon":"list-checks","href":"/building/evals/test-cases"},{"title":"Runs","icon":"play","href":"/building/evals/runs"}]},{"group":"More","pages":[{"title":"Feedback","icon":"inbox","href":"/building/feedback"}]}]},{"tab":"Administration","icon":"shield","pages":[{"title":"Administration","href":"/administration/users-access/overview"}]},{"tab":"Self-Hosting","icon":"server","pages":[{"title":"Self-Hosting","href":"/self-hosting/architecture"}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/developers/setup"}]},{"tab":"API Reference","icon":"braces","pages":[{"title":"API Reference","href":"/api-reference/rest/introduction"}]},{"tab":"Changelog","icon":"history","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Turn emails into automated runs - IMP Docs","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["07c022d89b"],"chunks":["Frame-5Xwp92K7.js","DynamicMarkdown-BoyYAA8K.js"]}