ContactBook a call
Mailgun

Operations & Internal Tools

Connect Mailgun and Retool

Emailed requests become records your team can check and act on, in one internal tool.

Connects
Mailgun and Retool
Data flows
4 automated, two-way where safe
Built with
Mailgun, Retool, OpenAI
Timeline
Live in 2 to 8 weeks from scope
Owned by
You, with accounts, credentials and code in your name.

Connecting Mailgun to Retool turns inbound email into records in an internal tool, so staff check and act on them without retyping. SBD built an enquiry platform for an industrial distributor that reads emailed RFQs with AI and matches parts against the SAP item master, with Mailgun and Retool in the stack.

What runs between Mailgun and Retool

Each line is one automated workflow, with the same checks, logs and alerts on all of them.

MailgunMailgun
  1. RFQs read from email

  2. Purchase orders turned into records

  3. Supplier invoices captured

  4. Attachments stored against each record

Retool

Where the simple setup breaks down

A one-step Zap connects Mailgun and Retool in an afternoon. This is what goes wrong once volume grows.

  • Retool does not receive email on its own

    A Retool app needs something in front of it to accept the message. Mailgun receives it and posts to an endpoint, which must store the data first, because a failed write would otherwise lose the email.

  • The useful part is often in the attachment

    RFQs and purchase orders commonly arrive as PDFs or spreadsheets. An email body alone misses the data, so attachments have to be stored against the record and read separately.

  • The same request arrives more than once

    Customers forward, reply and resend. Without a check on message IDs and thread content, one enquiry becomes three and staff quote it twice.

  • An AI reading has to be checkable

    If the app shows only the extracted fields, nobody can tell when the AI misread a part number. Keeping the original email beside the result, with a queue for uncertain matches, is what makes staff trust it.

Used for

  • RFQs read from email
  • Purchase orders turned into records
  • Supplier invoices captured
  • Attachments stored against each record
  • Mailgun inbound routes to Retool
  • AI extraction with human review
  • Part number matching
  • Review queues in Retool
  • Email to internal tool workflows
  • Duplicate enquiry detection

Built with

  • MailgunMailgun
  • Retool
  • OpenAI
  • Cloudflare
  • Your ERP or database

Standards on every build

Validation, retries, reconciliation, audit logs and alerts come as standard, with credentials and accounts in your name. Read the integration standards

Where we have done this

What people ask about this pair

Do we have to change our email address?

Usually not. You can forward an existing address such as sales@ to the inbound address, so customers keep writing to the one they know.

Will the AI make mistakes?

Yes, sometimes, especially with part numbers written in many forms. Uncertain results go to a person, and the original email sits beside the result so checking is quick.

Can this work with something other than Retool?

Yes. Mailgun only needs an endpoint to post to. Retool suits an internal review screen, and the same intake can feed another app.

Related pairs

Connect Mailgun and Retool

Emailed requests become records your team can check and act on, in one internal tool.

Start with a discovery call
Mailgun and Retool logos joined by a plus sign
Mailgun and Retool, connected by SBD.

Cookie preferences

Choose what this site may use on your device. You can change this at any time from “Cookie settings” in the footer.

Strictly necessary

Keep the site working and remember the choices you make here. These cannot be switched off, and none of them track you.

Always on
What this includes (4)
NameProvider PurposeDuration
sbd-consentThis site Remembers your cookie choices12 months
Vercel Web AnalyticsVercel Inc. Counts page views in aggregate. Sets no cookie and stores nothing on your deviceNone
ticker-dismissed, sbd-note-offThis site Remembers that you closed a notice or language tipUntil the tab closes
sbd-voice-resume, sbd-voice-prefillThis site Carries a voice conversation across pages, only if you start oneUntil the tab closes

Analytics

Tell us which pages are read and where visitors leave, so we can improve them. IP addresses are anonymised and nothing is used for advertising.

What this includes (2)
NameProvider PurposeDuration
_gaGoogle Analytics (Google LLC) Distinguishes visitors with a random ID13 months
_ga_FPXDMQPRV1Google Analytics (Google LLC) Keeps the session state for this site13 months

Functional

Embedded services that set their own cookies. Without them the site still works; you get a link to open the service instead.

What this includes (1)
NameProvider PurposeDuration
Booking calendarCal.com Inc. Shows live availability and books the call on the booking pageSet by Cal.com

Advertising

Not used. This site has no advertising, retargeting or social media tracking, and we never sell data.

Not used

Questions about your data: hello@smallbaydigital.com