Quick overview
Quick overview This workflow receives lead details via a webhook and sends them to Groq’s OpenAI-compatible Chat Completions API to score and qualify the lead, then returns a structured JSON response with score, tier, recommended next action, and reasons. How it works Receives a POST request on the /ai-lead-qualification webhook containing lead details in the request body. Builds a chat prompt that asks Groq to score the lead (0–100) on budget/authority/fit/urgency/detail and return only a JSON object with qualification fields. Calls Groq’s Chat Completions endpoint with the openai/gpt-oss-120b model and requests a JSON-formatted response. Parses Groq’s response, applies defaults if fields are missing, and maps the result to a consistent output schema (score, tier, qualified, recommended_action, reasons). Returns the qualification result as a JSON response to the original webhook request. Setup Create a Groq API key and add it as an HTTP Header Auth credential used by the HTTP request to https://api.groq.com/openai/v1/chat/completions. Copy the production webhook URL for /ai-lead-qualification and configure your form/app/CRM to send lead data as a POST request body to that URL. Ensure the webhook payload includes the expected fields (for example name, email, company, role, budget, need, source, message) so the prompt has enough context to score the lead. An n8n automation workflow template by Bhupesh Mohan.
Bhupesh Mohan
web
free
Others in the same category, ranked by how often they are opened.