Block 1 - Webhook1
- Type / Role
- n8n-nodes-base.webhook - webhook
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
WhatsApp Flows Encrypted Data Exchange Workflow Summary This workflow enables secure end to end encrypted data exchange with WhatsApp Flows for interactive applications inside Whatsapp. It implemen...
n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.switch, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Flavio Angeleu.
Original n8n.io sourceThis workflow enables secure end-to-end encrypted data exchange with WhatsApp Flows for interactive applications inside Whatsapp. It implements the WhatsApp Business Encryption protocol using RSA for key exchange and AES-GCM for payload encryption, providing a secure channel for sensitive data transmission while interfacing with WhatsApp's Business API. This follows the official WhatsApp Business Encryption specifications to establish an encrypted GraphQL-powered data exchange channel between your business and the WhatsApp consumer client.
Webhook Reception: Receives encrypted data from WhatsApp containing:
encrypted_flow_data: The AES-encrypted payloadencrypted_aes_key: The RSA-encrypted AES keyinitial_vector: Initialization vector for AES decryptionDecryption Process:
Data Processing:
screen parameter.Response Generation:
Deploy the Workflow:
Set Up WhatsApp Integration:
Test the Flow:
Production Use:
Authentication Keys
RSA Private Key: Required for decrypting the AES key (included in the workflow) WhatsApp Business Public Key: Must be registered with the WhatsApp Business API PostgreSQL Credentials: For accessing appointment data from the database
WhatsApp Business Encryption Setup As specified in the WhatsApp Business Encryption documentation:
Generate a 2048-bit RSA Key Pair:
The private key remains with your business (used in this workflow) The public key is shared with WhatsApp
Register the Public Key with WhatsApp:
Use the WhatsApp Cloud API to register your public key Set up the public key using the /v17.0/{WhatsApp-Business-Account-ID}/whatsapp_business_encryption endpoint
Key Registration API Call: POST /v17.0/{WhatsApp-Business-Account-ID}/whatsapp_business_encryption { "business_public_key": "YOUR_PUBLIC_KEY" }
Verification:
Verify your public key is registered using a GET request to the same endpoint Ensure the key status is "active"
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Create secure interactive applications with WhatsApp flows end-to-end encryption |
|---|---|
| Complexity | intermediate |
| Nodes | 12 |
| Categories | Support Chatbot |
| Author | Flavio Angeleu |
| Published | 10 May 2025 |
Use the JSON export at /data/workflows/3973/3973.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
WhatsApp Flows Encrypted Data Exchange Workflow Summary This workflow enables secure end to end encrypted data exchange with WhatsApp Flows for interactive applications inside Whatsapp. It implemen...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot use case.