This workflow automates contact creation in Drift using the Drift API. Key nodes include Contact Registration Webhook (receives POST requests), Validate Contact Data (extracts contact details), Check Email Required (validates email), Create Drift Contact (adds contact via API), Log Contact Creation (logs details), Send Success Response (returns success), and Send Validation Error (handles invalid inputs).\n\nSetup Requirements: Install n8n from n8n.io for local setup or sign up at cloud.n8n.io. Create a Webhook node (Contact Registration Webhook) with path create-drift-contact and HTTP method POST. Obtain a Drift API token from your Drift account (Settings > App Marketplace > API Token). In n8n’s Credentials, add Drift API with the token. Configure the Create Drift Contact node with https://driftapi.com/contacts and link it to the Drift API credential. Ensure Validate Contact Data extracts email, name, phone, company, title, website, source, and tags. The Check Email Required node verifies a non-empty email containing @; if invalid, Send Validation Error returns a 400 status with {"status": "error", "message": "Invalid or missing email address"}. Connect nodes in the editor. Handle errors like invalid API tokens (401).\n\nTesting and Deployment: Import the JSON into n8n’s workflow editor. Test with curl -X POST http://your-n8n-instance/create-drift-contact -d '{"email":"test@example.com","name":"John Doe","company":"Example Inc"}'. Verify Send Success Response outputs status: "success", contact_id, email, and name. Check Log Contact Creation for action: "drift_contact_created". Handle errors like missing email (400) or invalid token (401). Activate the workflow in n8n and integrate the webhook URL into your app (e.g., website form). Monitor execution logs for issues like duplicate emails or API rate limits, ensuring reliable contact creation in Drift.
$3.49
Workflow steps: 7
Integrated apps: webhook, set, if