Skip to content
Whatsapp Business C...
 
Notifications
Clear all

Whatsapp Business Cloud Disconnecting Periodically

4 Posts
4 Users
0 Reactions
4 Views
Mark_McDowell
(@mark_mcdowell)
Posts: 1
New Member
Topic starter
 

Describe the problem/error/question

I'm experiencing periodic disconnections with the WhatsApp Business Cloud node. To resolve this, I need to navigate to Meta → Business Manager → Whatsapp → API Setup and generate a new access token.

Afterward, I have to resubmit the credentials in the WhatsApp Business Cloud node.

What is the error message (if any)?

Connection failed.

Please share your workflow

json
{
"nodes": [
{
"parameters": {
"updates": [
"messages"
]
},
"type": "n8n-nodes-base.whatsAppTrigger",
"typeVersion": 1,
"position": [
-40,
0
],
"id": "3da64008-f974-4514-9d88-25ff37564a68",
"name": "Chat Received",
"webhookId": "74a1a9a2-c4ee-4468-a939-846a7bdff1bb",
"credentials": {
"whatsAppTriggerApi": {
"id": "MDUSv22VUw0dOE88",
"name": "WhatsApp OAuth account"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.messages[0].text.body }}",
"options": {
"systemMessage": "<span class="hashtag-raw">#Role</span>nYour name is Susanne, you are a professional customer service representative and appointment setter for Primal, engaging with potential leads on WhatsApp. You will answer questions first then suggest scheduling a call with a Strategist, sharing the meeting link only when 6 critical lead details are collected and synced with the Google Sheets tool.nn#TasknYour primary objective is to be as helpful as possible by answering questions from leads. Do your best to answer their questions and ensure they have no further queries.nnWhen the conversation becomes sales-related—such as discussing pricing, proposals, credentials, meetings, video calls, or services—you will always encourage them to book a meeting with a scheduling link.nnIf you cannot answer a question, mention that a Strategist can provide more details and encourage them to book a meeting through the scheduling link.nn#Scheduling Linknn<a href="https://meetings.hubspot.com/aziz-khawar/brief-meeting%5Cn%5Cn**Always" rel="noopener nofollow ugc"> https://meetings.hubspot.com/aziz-khawar/brief-meetingnn**Always</a> share the link as above never in parentheses or brackets it should just be a simple link.nn#ContextnYou work for Primal.nnPrimal is a performance marketing agency offering:nnSEO servicesnGoogle AdsnFacebook AdsnTikTok Adsnn#StylenUse simple words and short sentences.nGrade 3 grammar.nFriendly tone.nNo emojis.nKeep responses under 20 words, similar to chat app messaging.nAlways ask one question at at time.nn#SOPnnGreeting Message:nnStart every conversation with:n"Hi there. Thanks for reaching out to Primal."nnAlways answer questions to the best of your ability and if you can’t then recommend that they speak to a strategist.nnYou will only share the meeting scheduling link only after you have gone through the Sales Qualification Process.nnSales Qualification Process:nnIf the conversation shows increased interest and intent to do more with us, inform the lead that you need a few details before sharing a meeting link.nnAsk for these details all in separate messages in this order:n 1. ___What is your first name?n 2. ___What is your email address?n 3. ___What is your company name?n 4. ___What is your company website?n 5. ___How many employees do you have?n 6. ___What is your best phone number (with country code formatted correctly)?nn___ = must-have and required information to proceed.nnIf the lead shared details previously, then instead of asking you should confirm the details instead.nnRemember: Keep responses under 20 words, similar to chat app messaging and only ask one question at a time. Never group questions together or in a list.nnRemember: To always confirm the final details with the lead then sync the data with Google Sheets .nn# ToolsnnOnce all six details are gathered, immediately use Google Sheets tool.nnSync the same contact details to the Google Sheets tool for record-keeping.nnThe sequence should always be:n1. Collect Lead Info ➔ 2. Google Sheets Sync ➔ 3. Share meeting schedulernnMeeting Link Sharing:nnAfter the data sync, encourage the lead to schedule a meeting:nn"Thanks for sharing your details. You can book a convenient time with our Strategist here: <a href="https://meetings.hubspot.com/aziz-khawar/brief-meeting.%5C" rel="noopener nofollow ugc"> https://meetings.hubspot.com/aziz-khawar/brief-meeting.</a> ;"nnnObjection Handling:nnIf you cannot answer a question:nnAsk if the lead would like to move forward by gathering the lead details listed above.nnThen follow the Google Sheets update and meeting scheduling steps.nn#EXAMPLE 1nn__Q__ Can you share pricing?n__A__ We need to learn more about your business. Would you like to speak to a Strategist?nn#EXAMPLE 2nn__Q__ What makes you better than other agencies?n__A_ We use INSTINCT, our proprietary process. Would you like to speak to a Strategist?nn#EXAMPLE 3nn__Q__ Can you send me more info first?n__A__ A Strategist can help with that. Should I share their meeting scheduler?nn#EXAMPLE 4 n__Q__ Can you share pricing? n__A__ We’ll need to learn more about your business before we can correctly give you investment options. Would you like to speak to a strategist?nn#EXAMPLE 5nn__Q__ What makes you better than other agencies?n __A__ We utilize INSTINCT our proprietary process for all campaigns that drive the best ROI’s in the industry. Would you like to speak to a strategist?nnNotes:nDo not mention tools or the knowledge base, or that you are AI.nKeep responses under 20 words and natural.nPresent information as if it’s known first-hand.nOnly ask one question at a time. Never group questions together or in a list.nIf the lead can’t provide a company website ask for their Instagram page or as a last resort their Facebook page, then if they don’t have it say it’s fine and move onto the next question.nNEVER mention that you used tools or a bot or AI.nNEVER ask the next question until the lead answers the current one.n"
}
},
"type": "<a class="mention" href="/u/n8n">@n8n</a>/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
480,
-40
],
"id": "96136c36-4d06-46de-8aaf-cd38739fbe59",
"name": "AI Agent"
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $(‘Chat Received’).item.json.contacts[0].wa_id }}",
"contextWindowLength": 10
},
"type": "<a class="mention" href="/u/n8n">@n8n</a>/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
520,
200
],
"id": "53d84b44-0ffa-4454-b856-4b20c1dc78d2",
"name": "Window Buffer Memory"
},
{
"parameters": {
"operation": "send",
"phoneNumberId": "=605620382626542",
"recipientPhoneNumber": "={{ $(‘Chat Received’).item.json.contacts[0].wa_id }}",
"textBody": "={{ $json.output }}",
"additionalFields": {},
"requestOptions": {}
},
"type": "n8n-nodes-base.whatsApp",
"typeVersion": 1,
"position": [
1240,
-240
],
"id": "db69572a-858e-418a-b6ee-3dcf1657ed3c",
"name": "WhatsApp Business Cloud",
"credentials": {
"whatsAppApi": {
"id": "TalBaCKLLzqKBjyp",
"name": "WhatsApp account"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "328b0db0-62d2-4409-87e1-01da692eab53",
"leftValue": "={{ $json.messages[0].text.body }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
200,
0
],
"id": "fce56afe-2db2-4516-aeb4-20ee348d2d16",
"name": "If"
},
{
"parameters": {
"descriptionType": "manual",
"toolDescription": "For every message the user sends, collect the customer’s details which should include First Name, Phone Number (with country code formatted correctly), Work Email, Company Name, Company Website and Number Of Employees.",
"operation": "append",
"documentId": {
"__rl": true,
"value": "<a class="inline-onebox" href="https://docs.google.com/spreadsheets/d/1bjNimworhCnLLDrQwRbRvA0VIFJ7_x1CXNqwjVMSz2k/" rel="noopener nofollow ugc">n8n Test - Google Sheets</a>",
"mode": "url"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Notes",
"cachedResultUrl": "<a class="inline-onebox" href="https://docs.google.com/spreadsheets/d/1bjNimworhCnLLDrQwRbRvA0VIFJ7_x1CXNqwjVMSz2k/edit#gid=0" rel="noopener nofollow ugc">n8n Test - Google Sheets</a>"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"First Name": "={{ /_n8n-auto-generated-fromAI-override_/ $fromAI(‘First_Name’, `` , 'string') }}", "Phone Number": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Phone_Number', ``, ‘string’) }}",
"Email": "={{ /_n8n-auto-generated-fromAI-override_/ $fromAI(‘Email’, `` , 'string') }}", "Company Name": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Company_Name', ``, ‘string’) }}",
"Number Of Employees": "={{ /_n8n-auto-generated-fromAI-override_/ $fromAI(‘Number_Of_Employees’, `` , 'string') }}", "Company Website": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Company_Website', ``, ‘string’) }}"
},
"matchingColumns": <span class="chcklst-box fa fa-square-o fa-fw"></span>,
"schema": [
{
"id": "First Name",
"displayName": "First Name",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Phone Number",
"displayName": "Phone Number",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Email",
"displayName": "Email",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Company Name",
"displayName": "Company Name",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Number Of Employees",
"displayName": "Number Of Employees",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Company Website",
"displayName": "Company Website",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.googleSheetsTool",
"typeVersion": 4.5,
"position": [
740,
200
],
"id": "4f5b1251-27f7-4dba-9686-9ba5822f86c8",
"name": "Google Sheets",
"credentials": {
"googleSheetsOAuth2Api": {
"id": "zw1IrWbr4bedwdik",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4o",
"mode": "list",
"cachedResultName": "gpt-4o"
},
"options": {}
},
"type": "<a class="mention" href="/u/n8n">@n8n</a>/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
300,
200
],
"id": "43042ecb-2198-414f-8d82-4cb22b9d5ae7",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "dY2vOJrR45uE7Uwo",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"operation": "send",
"phoneNumberId": "605620382626542",
"recipientPhoneNumber": "{{ $(‘Chat Received’).item.json.contacts[0].wa_id }}",
"textBody": "Were you able to find a good time to book a call?",
"additionalFields": {},
"requestOptions": {}
},
"type": "n8n-nodes-base.whatsApp",
"typeVersion": 1,
"position": [
2160,
-300
],
"id": "6d083e25-122f-468f-97fd-32909feab77b",
"name": "WhatsApp Business Cloud1",
"credentials": {
"whatsAppApi": {
"id": "TalBaCKLLzqKBjyp",
"name": "WhatsApp account"
}
}
},
{
"parameters": {
"amount": 1,
"unit": "days"
},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
1860,
-280
],
"id": "5a8939ec-dccd-46a3-9393-ef0e7d6115a1",
"name": "Wait",
"webhookId": "15797e82-c02f-4f0b-95d4-6642bc4a5187"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "b4306910-e8aa-446b-9e39-a891f4d83e0c",
"leftValue": "={{ $(‘AI Agent’).item.json.output }}",
"rightValue": "<a href="http://meetings.hubspot.com" rel="noopener nofollow ugc">meetings.hubspot.com</a>",
"operator": {
"type": "string",
"operation": "contains"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
1560,
-220
],
"id": "9bd29dbc-15d9-4505-b6e2-855bd79481c7",
"name": "If1"
}
],
"connections": {
"Chat Received": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "WhatsApp Business Cloud",
"type": "main",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"WhatsApp Business Cloud": {
"main": [
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "WhatsApp Business Cloud1",
"type": "main",
"index": 0
}
]
]
},
"If1": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "aa754b1d57c4e846eccf5b1546b80e1ceb275ffa01a29dd5d463cff08d967f5e"
}
}

Information on your n8n setup

  • n8n version: Running version n8n@1.78.1
  • Database (default: SQLite): None
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: Mac

I am also on a trial account.

 
Posted : 24/02/2025 4:12 am
Daniel_Lamphere
(@daniel_lamphere)
Posts: 9
Active Member
 

Hello!

:wave:

I'm sorry to hear you're experiencing issues with your WhatsApp Business Cloud connection disconnecting hourly. It seems you might be encountering the limitations of the temporary access token provided during the initial setup.

For a more stable connection, ensure your Meta App is set to “Live” mode within the App settings. Tokens in development mode typically have a very short lifespan.

After changing to “Live” mode, try generating a new access token. This may provide you with a longer-lasting token.

For a truly dependable, production-ready configuration, you will likely need to complete Meta’s App Review process. This can grant you more permanent access.

Refer to the callin.io documentation on WhatsApp Business Cloud credentials https://docs.n8n.io/integrations/builtin/credentials/whatsapp/ for comprehensive details!

I hope this assists you! Please keep us updated on your progress!

:+1:

 
Posted : 24/02/2025 5:03 am
Hunaid_Hussain
(@hunaid_hussain)
Posts: 1
New Member
 

I'm encountering a comparable problem. I've already enabled live mode, but it hasn't resolved the issue significantly. As reported, it frequently disconnects every 1-2 hours.

 
Posted : 08/04/2025 5:47 pm
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 90 days following the last response. New replies are no longer permitted.

 
Posted : 07/07/2025 5:47 pm
Share: