Artifact Sesi 2 | Template untuk workflow pertama
📋 Workflow Spec
Name: Inquiry Handler v1
Pattern: Trigger → Format → Notify
[Webhook Trigger (POST)]
│
▼
[Set Node: Format Data]
│
▼
[Notification Node]Node Details
1. Webhook Trigger
| Setting | Value |
|---|---|
| HTTP Method | POST |
| Path | inquiry-form |
| Response Code | 200 |
2. Set Node (Edit Fields)
| Field | Value |
|---|---|
| nama | {{ $json.body.nama }} |
{{ $json.body.email }} | |
| pesan | {{ $json.body.pesan }} |
| timestamp | {{ $now.format('DD/MM/YYYY HH:mm') }} |
| summary | Inquiry dari \{{ $json.body.nama }}: \{{ $json.body.pesan }} |
3. Notification Node (pilih salah satu)
Option A: Google Sheets
| Column | Value |
|---|---|
| Nama | {{ $json.nama }} |
{{ $json.email }} | |
| Pesan | {{ $json.pesan }} |
| Waktu | {{ $json.timestamp }} |
Option B: Email
| Field | Value |
|---|---|
| To | your-email@test.com |
| Subject | Inquiry Baru - \{{ $json.nama }} |
| Body | {{ $json.summary }} |
Test Payload
json
{
"nama": "Test User",
"email": "test@email.com",
"pesan": "Ini test inquiry dari workflow pertama"
}Checklist
- [ ] Webhook trigger menerima data
- [ ] Set node memformat data dengan benar
- [ ] Notification terkirim / data tersimpan
- [ ] Workflow di-activate (jalan otomatis)