Bibliothek / Kundensupport & Helpdesk
Kundensupport & Helpdesk
Mediationsfälle per Webhook mit Google Sheets und Telegram verfolgen
Lässt freigegebene Mediatoren über authentifizierte Webhook-Anfragen minimale Falldetails erfassen und abrufen, wobei menschliche Mediatoren jede Entscheidung treffen.
Was sie bewirkt
# Peacebuilding management tool This workflow helps approved community mediators record and retrieve minimal conflict-case information using authenticated webhook requests designed for SMS-style messaging. Human mediators remain responsible for every conflict decision. # Before you begin Create one protected Google Sheet with these six tabs: - Mediators - Cases - Case Updates - Messages - Local Contacts - Case Review Checklists You will also need: - a dedicated n8n Header Auth credential whose header name is X-Peacebuilding-Webhook-Key; - Google Sheets and Telegram credentials stored only in n8n; - the private Telegram chat ID of the record keeper; - fictional mediators, cases, contacts, and provider message IDs for testing. # How it works 1. n8n checks Header Auth before starting the workflow. Missing or incorrect authentication receives HTTP 403. 2. The workflow validates phone, smsText, and providerMessageId, including maximum lengths. 3. It checks the phone against the active mediators in Mediators. 4. It searches Messages for a completed OUTBOUND row with the same provider_message_id. 5. A completed duplicate returns HTTP 200 and does not repeat any write or Telegram alert. 6. A new request is logged, routed to NEW, UPDATE, SUMMARY, STATUS, HELP, or UNKNOWN, and handled by the relevant human-led route. 7. The prepared reply is logged with the provider message ID before it is returned through the webhook. If the duplicate lookup fails, the workflow returns HTTP 503 before any write or Telegram alert. # Setup - [ ] Create the Header Auth credential with header X-Peacebuilding-Webhook-Key; keep its secret private. - [ ] Add the Header Auth credential to Webhook: mediator request. - [ ] Add the same protected demo Sheet to every Google Sheets node. - [ ] Add a dedicated demo Telegram credential and chat ID to both alert nodes. - [ ] Use fictional values for every test. - [ ] Keep the workflow inactive until you have configured all placeholders and tested every route with fictional data. # Test request bash curl -sS -X POST "PASTE_TEST_URL_HERE" \ -H "Content-Type: application/json" \ -H "X-Peacebuilding-Webhook-Key: PASTE_TEST_SECRET_HERE" \ -d '{"phone":"+22300000001","smsText":"HELP","providerMessageId":"DEMO-MSG-001"}' This is a public demonstration. Google Sheets duplicate checking protects normal sequential retries but cannot guarantee exactly-once pro
Die Schritte
- Webhook: mediator request
- Normalize mediator request
- Check required request fields
- Find approved mediator
- Mediator is active
- Reply: HELP
- Reply: sender not approved
- Reply: invalid request
- Reply: register unavailable
- Find completed provider message
- Provider message already processed
- Reply: duplicate provider message
- Prepare command
- Route mediator command
Insgesamt 64 Schritte.
Ähnliche Automatisierungen
Sicherheit & ComplianceWebhook-Anfragen mit Redis und Airtable ratenbegrenzen12 SchritteBausteine & HilfsmittelAirtable-basierte API mit Redis ratenbegrenzen11 SchritteKI-Agenten & AssistentenProtokolliere OpenAI-Agent-Läufe als hash-verkettete Belege in Data Tables pro Kunde39 SchritteE-Mail-AutomatisierungTrack LLM spend per workflow and send budget alerts via the n8n API16 Schritte