Library / AI Agents & Assistants
AI Agents & Assistants
Qualify B2B leads with OpenAI, PostgreSQL, and human email approval
When you run it, it runs an AI agent with OpenAI / ChatGPT using Postgres, SMTP Email.
What it does
## AI B2B Lead Agent with Human Approval ### How it works This workflow receives a B2B lead via webhook, applies business configuration, normalizes and validates the lead, then stores valid records in PostgreSQL. A hybrid AI qualification agent uses OpenAI, PostgreSQL-backed memory, lead history, policy calculations, and database logging tools to produce a structured recommendation. The workflow validates the Agent decision, routes unreliable decisions to manual review, handles no-action outcomes, and creates human approval requests before executing approved follow-up emails or lead conversions. ### Setup steps - Configure PostgreSQL credentials and run the manual setup path before processing leads. - Configure OpenAI credentials for the chat model. - Configure SMTP credentials for review, approval, and approved follow-up nodes. - Edit business settings in Workflow Configuration. - Secure the production webhook before accepting public submissions. ### Customization Adjust validation, scoring thresholds, Agent instructions, approval criteria, and email templates to match your sales process.
The steps
- Run Database Setup Once
- Create Agent Tables
- Setup Complete
- Receive Lead
- Workflow Configuration
- Normalize Lead
- Validate Lead
- Valid Lead?
- Return Invalid Lead
- Upsert Lead
- Hybrid Lead Qualification Agent
- OpenAI Chat Model
- Postgres Lead Memory
- Structured Lead Decision
42 steps in total.
Similar automations
Lead Generation & EnrichmentQualify B2B leads in Google Sheets with Jev AI, then route via Slack or Gmail16 stepsMonitoring, Ops & IncidentsTriage PostgreSQL blocking sessions with Ollama and Telegram approval15 stepsAlerts & NotificationsQualify and route real estate leads with OpenAI, PostgreSQL, Gmail and Slack18 stepsCRM & Sales PipelineQualify, enrich, and route B2B inbound leads with GPT-4o, HubSpot, and Slack10 steps