Google Sheets Credential সেটআপ
- n8n-এ Credentials → New → Google Sheets OAuth2 API
- Google Cloud Console → New Project তৈরি করুন
- Google Sheets API ও Google Drive API Enable করুন
- OAuth 2.0 Client ID তৈরি করুন (Web application)
- Redirect URI:
https://your-n8n.com/rest/oauth2-credential/callback
- Client ID ও Secret n8n-এ দিন → Connect অ্যাকাউন্ট
Sheet থেকে সব Row পড়া (Read Rows)
Node: Google Sheets
Operation: Get Many Rows
Spreadsheet: [Select করুন]
Sheet: Sheet1
Filters (optional):
Column: Status
Value: "pending"
নতুন Row যোগ করা (Append Row)
Node: Google Sheets
Operation: Append Row
Spreadsheet: Lead Database
Sheet: Leads
Mapping:
Name → {{ $json.name }}
Email → {{ $json.email }}
Phone → {{ $json.phone }}
Date → {{ $now.toFormat("dd/MM/yyyy") }}
Source → "Facebook Lead Ad"
Status → "New"
Row আপডেট করা (Update Row)
Operation: Update Row
Column to Match: Email → {{ $json.email }}
Update Fields:
Status → "Contacted"
Note → {{ $json.reply }}
Row খোঁজা (Lookup)
Operation: Lookup
Lookup Column: Email
Lookup Value: {{ $json.email }}
→ মিলে গেলে সেই row-এর ডেটা পাওয়া যাবে
→ না মিললে empty return করবে
একটি পূর্ণ উদাহরণ: Form → Sheet → Email
[Webhook Trigger — Form submit]
↓
[Google Sheets — নতুন row যোগ]
↓
[Gmail — Confirmation email পাঠানো]
↓
[Telegram — Admin-কে notify]