Draft personalized welcome emails for new signups with Twain, Gmail, and Slack
Quick overview This workflow receives new signup events, enriches each contact with Twain (and optionally a LinkedIn lookup), drafts a personalized welcome email in Gmail, and posts review-ready previews to Slack, with optional LinkedIn-step handoff to HeyReach.
How it works Receives a new signup via a POST webhook secured with header authentication (with optional disabled schedule-based backfills from Google BigQuery or Google Firestore). Normalizes the signup fields (email, name, UID, timestamps, LinkedIn URL) and de-duplicates signups by UID across workflow executions. If the signup has no LinkedIn URL but does have an email, looks up a LinkedIn profile URL via Findymail (or other disabled provider alternatives) and merges the resolved profile back into the contact. If the contact has a usable work email or LinkedIn URL, calls the Twain Generate Sequence API to research the person and generate a personalized welcome sequence, otherwise posts a “skipped” notice to Slack. Builds a formatted draft payload and previews (email steps vs LinkedIn steps) from the Twain response, including any warning flags and a link back to the lead in Twain. If a work email is available, creates a Gmail draft and posts a Slack message with the draft preview (or posts a Slack fallback if the draft cannot be created), and if there is no work email, posts the LinkedIn welcome text to Slack for manual sending. If LinkedIn steps are configured, optionally pushes the LinkedIn message to a HeyReach campaign (disabled by default) and posts a Slack update confirming whether it was queued.
Setup Create a Twain welcome campaign, copy its campaign_id into the workflow’s signup normalization step, and add a Twain API key using HTTP Header Auth with header name X-Api-Key. Connect your Slack OAuth credentials and set the target Slack channel name in the channel settings. Connect your Gmail OAuth2 credentials for the mailbox where drafts should be created. Configure the webhook header authentication secret and send signups to the webhook URL with fields like uid, email, displayName, linkedin_url, and signup_ts. (Optional) Add a LinkedIn lookup provider credential (Findymail bearer token, or enable Apollo/People Data Labs/Proxycurl nodes) to resolve missing LinkedIn URLs. (Optional) Enable and configure HeyReach (API key credential and campaign ID) and set email_steps/linkedin_steps routing to control which sequence steps become email drafts vs LinkedIn messages.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments