n8n detects a Stripe payment, sends a welcome email via Gmail and assigns setup tasks in Asana.
Prepare n8n Environment
Navigate to http://localhost:5678 (or your n8n URL) and log in with your credentials. In the sidebar, click “Workflows,” then select “+ New” and name it (e.g., “Customer Onboarding”). Click “+” on the canvas to open the node selector.
Trigger Node: Stripe Webhook
Node: Webhook
Settings:
Path: stripe-payment
Stripe Webhook: https://<n8n-host>/webhook/stripe-payment for “charge.succeeded”
Output: Payment data (e.g., {{ $json.body.data.object.customer_email }}).
Send Welcome Email Node: Gmail
Node: Gmail
Settings:
Credentials: Gmail API key
To: {{ $node["Webhook"].json.body.data.object.customer_email }}
Subject: Welcome to Our Service!
Body: Hi, thanks for your purchase! Here’s your setup guide: <link>
Output: Welcome email sent.
Assign Tasks Node: Asana
Node: Asana
Settings:
Credentials: Asana API token
Resource: Task
Operation: Create
Project ID: Onboarding project
Name: Onboard {{ $node["Webhook"].json.body.data.object.customer_email }}
Description: Set up account and follow upOutput: Task created.
Ready to transform your business with our technology solutions? Contact Us today to Leverage Our AI/ML Expertise.