PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(claude-4-5-sonnet)
Token size
1,299
Example input
[BUSINESS_PROCESS]: When a new lead submits the Typeform survey, create a contact in HubSpot CRM, send welcome email via SendGrid, and post notification to #sales Slack channel with lead details. [TRIGGER_TYPE]: app_event [APP_LIST]: Typeform, HubSpot, SendGrid, Slack
Example output
```json { "name": "Typeform Lead to HubSpot + SendGrid + Slack", "nodes": [ { "parameters": { "formId": "={{$env.TYPEFORM_FORM_ID}}", "triggerOn": "formResponse", "additionalFields": {} }, "id": "trigger_typeform_001", "name": "Typeform Trigger", "type": "n8n-nodes-base.typeformTrigger", "typeVersion": 1, "position": [250, 300], "webhookId": "typeform-lead-webhook", "credentials": { "typeformApi": { "id": "{{$env.TYPEFORM_API_KEY}}", "name": "Typeform Account" } }, "notes": "Triggers when new form submission received. Configure form ID in environment variables." }, { "parameters": { "values": { "string": [ { "name": "email", "value": "={{$json.email}}" }, { "name": "firstName", "value": "={{$json.first_name}}" }, { "name": "lastName", "value": "={{$json.last_name}}" }, { "name": "company", "value": "={{$json.company}}" }, { "name": "phone", "value": "={{$json.phone}}" } ] }, "options": {} }, "id": "set_lead_data_002", "name": "Extract Lead Data", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [450, 300], "notes": "Normalizes Typeform response fields for downstream nodes. Add custom fields as needed." }, { "parameters": { "resource": "contact", "operation": "upsert", "email": "={{$json.email}}", "additionalFields": { "firstName": "={{$json.firstName}}", "lastName": "={{$json.lastName}}", "company": "={{$json.company}}", "phone": "={{$json.phone}}", "lifecycleStage": "lead" }, "resolveData": true }, "id": "hubspot_create_003", "name": "Create HubSpot Contact", "type": "n8n-nodes-base.hubspot", "typeVersion": 2, "position": [650, 300], "credentials": { "hubspotApi": { "id": "{{$env.HUBSPOT_API_KEY}}", "name": "HubSpot Account" } }, "retryOnFail": true, "maxTries": 3, "waitBetweenTries": 1000, "notes": "Upserts contact (creates or updates if email exists). Returns HubSpot contact ID for reference." }, { "parameters": { "resource": "email", "operation": "send", "from": "{{$env.SENDGRID_FROM_EMAIL}}", "fromName": "{{$env.COMPANY_NAME}}", "to": "={{$json.email}}", "subject": "Welcome! We've received your inquiry", "message": "Hi {{$json.firstName}},\n\nThank you for reaching out! Our team will review your information and get back to you within 24 hours.\n\nBest regards,\nThe {{$env.COMPANY_NAME}} Team", "additionalFields": { "replyTo": "{{$env.SENDGRID_REPLY_TO_EMAIL}}" } }, "id": "sendgrid_email_004", "name": "Send Welcome Email", "type": "n8n-nodes-base.sendGrid", "typeVersion": 1, "position": [850, 300], "credentials": { "sendGridApi": { "id": "{{$env.SENDGRID_API_KEY}}", "name": "SendGrid Account" } }, "retryOnFail": true, "maxTries": 3, "waitBetweenTries": 2000, "notes": "Sends automated welcome email. Customize message template in parameters." }, { "parameters": { "channel": "#sales", "text": "", "attachments": [], "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "*🎯 New Lead Submitted*\n\n*Name:* {{$json.firstName}} {{$json.lastName}}\n*Email:* {{$json.email}}\n*Company:* {{$json.company}}\n*Phone:* {{$json.phone}}\n\n*HubSpot Contact:* <https://app.hubspot.com/contacts/{{$env.HUBSPOT_PORTAL_ID}}/contact/{{$node[\"Create HubSpot Contact\"].json[\"id\"]}}|View in HubSpot>" } } ], "otherOptions": {} }, "id": "slack_notify_005", "name": "Post to Slack #sales", "type": "n8n-nodes-base.slack", "typeVersion": 2.1, "position": [1050, 300], "credentials": { "slackApi": { "id": "{{$env.SLACK_BOT_TOKEN}}", "name": "Slack Bot" } }, "retryOnFail": true, "maxTries": 2, "waitBetweenTries": 1000, "notes": "Posts formatted notification to sales channel. Requires Slack bot with chat:write scope." }, { "parameters": { "conditions": { "boolean": [], "number": [], "string": [ { "value1": "={{$json.error}}", "operation": "isNotEmpty" } ] } }, "id": "error_check_006", "name": "Error Handler", "type": "n8n-nodes-base.if", "typeVersion": 1, "position": [850, 500], "alwaysOutputData": true, "notes": "Catches execution errors and routes to notification branch." }, { "parameters": { "channel": "#alerts", "text": "", "attachments": [], "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "*⚠️ Workflow Error: Typeform Lead Processing*\n\n*Failed Node:* {{$json.node}}\n*Error:* {{$json.error.message}}\n*Lead Email:* {{$node[\"Extract Lead Data\"].json[\"email\"]}}\n\n*Action Required:* Check N8N execution logs" } } ] }, "id": "slack_error_007", "name": "Alert Ops Channel", "type": "n8n-nodes-base.slack", "typeVersion": 2.1, "position": [1050, 500], "credentials": { "slackApi": { "id": "{{$env.SLACK_BOT_TOKEN}}", "name": "Slack Bot" } }, "notes": "Sends error notification to operations channel for manual intervention." } ], "connections": { "Typeform Trigger": { "main": [ [ { "node": "Extract Lead Data", "type": "main", "index": 0 } ] ] }, "Extract Lead Data": { "main": [ [ { "node": "Create HubSpot Contact", "type": "main", "index": 0 } ] ] }, "Create HubSpot Contact": { "main": [ [ { "node": "Send Welcome Email", "type": "main", "index": 0 }, { "node": "Error Handler", "type": "main", "index": 0 } ] ] }, "Send Welcome Email": { "main": [ [ { "node": "Post to Slack #sales", "type": "main", "index": 0 } ] ] }, "Error Handler": { "main": [ [ { "node": "Alert Ops Channel", "type": "main", "index": 0 } ] ] } }, "settings": { "saveExecutionProgress": true, "executionTimeout": 300, "timezone": "America/New_York" }, "staticData": null, "tags": [], "pinData": {}, "versionId": "n8n-v1.x" } ``` --- ## **DEPLOYMENT NOTES** ### **Manual Configuration Required** **1. Credential Setup (N8N UI → Settings → Credentials)** - **Typeform**: OAuth2 or API Key (requires form ID from Typeform dashboard) - **HubSpot**: Private App Token with `crm.objects.contacts.write` scope - **SendGrid**: API Key with Mail Send permission (min. "Mail Send" access) - **Slack**: Bot Token with `chat:write` and `chat:write.public` scopes (install app to workspace first) **2. Environment Variables (N8N Settings → Environment)** ```env TYPEFORM_FORM_ID=your_form_id TYPEFORM_API_KEY=your_api_key HUBSPOT_API_KEY=your_private_app_token HUBSPOT_PORTAL_ID=your_portal_id SENDGRID_API_KEY=SG.xxxxx SENDGRID_FROM_EMAIL=noreply@yourdomain.com SENDGRID_REPLY_TO_EMAIL=support@yourdomain.com COMPANY_NAME=YourCompany SLACK_BOT_TOKEN=xoxb-xxxxx ``` **3. Slack Channel Preparation** - Invite the N8N bot to `#sales` and `#alerts` channels - Test message permissions before activating workflow **4. Testing Protocol** - Import workflow to staging workspace first - Submit test Typeform response with dummy data - Verify execution log shows green checkmarks for all nodes - Confirm HubSpot contact creation, SendGrid delivery, and Slack message appearance **5. Error Recovery Strategy** - If HubSpot API fails: Leads are logged in N8N execution history (retrieve email from "Extract Lead Data" node) - If SendGrid fails: Contact still created in HubSpot (manually send welcome email) - If Slack fails: Primary workflow continues (check #alerts for notification issues) ### **Compatibility** - Designed for N8N v1.x+ (JSON structure aligns with current import schema) - Node types verified against official N8N documentation (December 2024) - Typeform Trigger requires webhook URL configuration in Typeform dashboard post-import ### **Performance Notes** - Expected execution time: 3-5 seconds per submission - Retry logic prevents transient API failures (3x retry with exponential backoff) - Workflow handles up to 100 concurrent executions (N8N default queue limit) --- 🛡️**N8N Workflow Architect™** | Verification ID: 7A4F2E9C | **Human Oversight Required**: Post-Import Credential Setup
🌀 Claude

N8n Workflow Architect

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-5-SONNET
Tested icon
Guide icon
4 examples icon
Free credits icon
**N8N Workflow Architect™** is a specialized prompt engineered to generate N8N workflow JSON scaffolds from natural language business process descriptions. It structures workflows with error handling patterns, credential placeholders, and retry logic templates designed for N8N v1.x+ compatibility.
...more
Added over 1 month ago
Report
Browse Marketplace