IntegrationsBeginner

How to Auto-Draft Email Replies from a Form with Zapier and GPT

Turn a typeform or Google Form submission into a polished draft reply using a Zapier webhook and the OpenAI API.

8 minBeginner

When someone fills out your contact form, you usually have to read it and write a reply by hand. This guide catches the submission with a Zapier webhook, asks GPT to draft a warm, on-brand response, and drops the draft into Gmail so you only need to review and send.

What you need

  • A form tool that supports webhooks (Typeform, Jotform, or Tally)
  • A Zapier account and an OpenAI API key
  • A Gmail or Outlook account connected in Zapier

Step 1: Point the form webhook at Zapier

Create a Catch Hook trigger in Zapier and copy its URL. In your form tool's settings, add that URL as a webhook destination so each submission is POSTed to Zapier.

Tally - Integrations - Webhooks
Webhook URL:
https://hooks.zapier.com/hooks/catch/123456/contact
Trigger on: New submission
Payload: name, email, message
[ Send test event ] Status: Connected
Paste the Zapier Catch Hook URL as the webhook endpoint.

Step 2: Ask GPT for a draft

Add an OpenAI action (or a Webhooks POST step) that sends the form message to the Chat Completions endpoint with a system prompt describing your tone.

OpenAI request body
{
  "model": "gpt-5-mini",
  "messages": [
    {
      "role": "system",
      "content": "You are a friendly support agent. Write a short, helpful email reply. Sign off as 'The Setuproll Team'."
    },
    {
      "role": "user",
      "content": "Customer name: {{name}}\nTheir message: {{message}}"
    }
  ]
}
Bake in your guardrails
Put rules like do not promise refunds and never invent prices into the system message. The model follows them on every submission with no extra effort from you.

Step 3: Create a Gmail draft

Add a Gmail action with the Create Draft event. Set the To field to the form's email value, write a subject line, and map the Body to the OpenAI output field choices.0.message.content.

Step 4: Turn the Zap on

Publish the Zap and submit a test entry through your real form. Open Gmail and check the Drafts folder.

Gmail - Drafts
You
Form: 'Do you offer team plans? - Priya'
Agent
Draft: Hi Priya, thanks for reaching out! Yes, we offer team plans for groups of five or more. I would love to share the details... - The Setuproll Team
A ready-to-review reply appears seconds after the form is submitted.

Result: every inquiry gets a thoughtful draft within seconds, and you keep full control because nothing sends until you click send.

Watch related tutorials

Tags
#zapier#openai#email#forms