Email Automation
Find and score event and speaker opportunities with Gumloop, Supabase, and OpenAI
When an API call/webhook arrives, it handles email with OpenAI / ChatGPT using Gmail, Postgres.
What it does
## Find event and speaker opportunities with Gumloop, Supabase, and OpenAI ### How it works This workflow accepts search requests from a Lovable front end, creates a temporary result record in Supabase/Postgres, immediately returns a request ID, and triggers the appropriate Gumloop search for event or speaker opportunities. When Gumloop calls back, it loads the original context, scores the returned results, updates the stored result row, optionally emails the user, and responds to the callback. Separate webhook endpoints let the front end poll for completed results and generate an AI-written outreach email draft through OpenAI. ### Setup steps - Configure the Lovable/front-end app to call the request, results, and draft-email webhook URLs exposed by this n8n workflow. - Set up Supabase/Postgres credentials in n8n and create/configure the tables used for temporary result rows and subscriber email capture. - Add Gumloop API credentials or headers to the Gumloop HTTP request nodes, and configure Gumloop to send completed search callbacks to the callback webhook URL. - Configure Gmail credentials for the results email sender node if email delivery is enabled. - Configure the OpenAI API key in the draft-email HTTP request node and confirm the model/request body matches your desired drafting behavior. ### Customization Adjust the input normalization, search-parameter building, scoring code, email HTML template, and OpenAI prompt/model to match your opportunity criteria, branding, and outreach style.
The steps
- Receive Opportunity Requests
- Normalize Incoming Data
- Insert Temp Search Record
- Generate Search Parameters
- Confirm Reception to Sender
- Route by Search Mode
- Check for Provided Email
- Store Subscriber Email
- Initiate Gumloop Event Search
- Verify Event Trigger Success
- Initiate Gumloop Speaker Search
- Verify Speaker Trigger Success
- Log Trigger Failure
- Receive Gumloop Callback
35 steps in total.
Similar automations
Image, Video & AudioGenerate a Multi-Speaker AI Podcast from Google Sheets Text11 stepsLead Generation & EnrichmentFind Backlink Opportunities and Send Outreach with Bright Data12 stepsRAG & Knowledge BasesReply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres33 stepsRAG & Knowledge BasesChat with Supabase Vector Store and Postgres Memory12 steps