Create secure interactive applications with WhatsApp flows end-to-end encryption
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 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 en
At a glance
Create secure interactive applications with WhatsApp flows end-to-end encryption is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects WhatsApp. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Modules
- 11
- Price
- Free
- Version
- v1.0

About this workflow
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 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. How It Works Encryption Flow 1. Webhook Reception: Receives encrypted data from WhatsApp containing: - encryptedflowdata: The AES-encrypted payload - encryptedaeskey: The RSA-encrypted AES key - initialvector: Initialization vector for AES decryption 2. Decryption Process: - The workflow decrypts the AES key using an RSA private key - Then uses this AES key to decrypt the payload data - The inverted IV is used for response encryption 3. Data Processing: - The workflow parses the decrypted JSON data - Routes requests based on the screen parameter. 4. Response Generation: - Generates appropriate response data based on the request type - Encrypts the response using the same AES key and inverted IV - Returns the base64-encoded encrypted response Key Components - Webhook Endpoint: Entry point for encrypted WhatsApp requests - Decryption Pipeline: RSA and AES decryption components - Business Logic Router: Screen-based routing for different functionality - Encryption Pipeline: Secure response encryption How to Use 1. Deploy the Workflow: - Import the workflow JSON into your n8n instance 2. Set Up WhatsApp Integration: - Configure your WhatsApp Business API to send requests to your n8n webhook URL - Ensure your WhatsApp integration is set up to encrypt data using the public key pair of the private key used in this workflow 3. Test the Flow: - Send an encrypted test message from WhatsApp to verify connectivity - Check if appointment data is being retrieved correctly - Validate that seat selection is functioning as expected 4. Production Use: - Monitor the workflow performance in production - Set up error notification if needed Requirements 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}/whatsappbusinessencryption endpoint Key Registration API Call: POST /v17.0/{WhatsApp-Business-Account-ID}/whatsappbusinessencryption { "businesspublickey": "YOURPUBLICKEY" } Verification: Verify your public key is registered using a GET request to the same endpoint Ensure the key status is "active"
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Query-to-action automation with Bright Data MCP & OpenAI GPT
Manage Google Calendar via WhatsApp with GPT-4 virtual assistant
Send WhatsApp messages for new leads from Facebook Lead Ads and log them in Google Sheets
MCP Supabase agent – manage your database with AI
Automate lead meeting scheduling with Zoho CRM, Google Calendar & Gemini AI
Manage tasks & send scheduled reminders with Telegram Bot, Google Sheets & GPT-4o mini
🤖 Automate Lead Qualification & Multi-Channel Follow-up with AI (BANT)
Client nurture & testimonial auto-pilot for Gumroad with Notion and Email
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you