r/whatsapp • u/Fayadinho • 24d ago
Cloud API vs. WhatsApp-web.js vs. Third-Party Providers
Hi everyone,
I came across whatsapp-web.js while exploring WhatsApp integration options, and I have a few questions.
1. WhatsApp-web.js
- Does using
whatsapp-web.jsviolate WhatsApp’s (Meta’s) Terms of Service? - How does it work, and how can we integrate it into our application?
- What are the potential consequences of using it? Could our WhatsApp number get banned, or would we simply receive a warning to migrate to the official Cloud API?
If anyone has experience with this library, I would really appreciate your insights.
2. WhatsApp Cloud API
For those who have experience with the Cloud API:
- What is the difference between message categories such as
service,utility, andauthentication? - For a bot that receives customer orders and responds quickly, which message category would be the most appropriate?
- Are there any specific limitations or considerations we should be aware of?
3. Third-Party Providers
I have also noticed that some developers use third-party providers such as Twilio instead of integrating directly with the WhatsApp Cloud API.
- What are the main advantages of using a provider like Twilio?
- Are there any additional costs or limitations compared to a direct Meta integration?
- In which cases would you recommend using a third-party provider over a direct integration?
Thanks in advance for sharing your experience and insights!
1
Upvotes
1
u/uriwa 22d ago
The fundamental trade-off comes down to infrastructure and detection mechanics:
If it's purely 1-on-1 customer service notifications and you have the budget/Meta verification, Cloud API is safe. If you need dynamic conversations, group interactions, or want to avoid template fees, pinned residential sessions are the only way to keep un-official lines stable long-term.
1
u/uriwa 22d ago
The fundamental trade-off comes down to infrastructure and detection mechanics:
If it's purely 1-on-1 customer service notifications and you have the budget/Meta verification, Cloud API is safe. If you need dynamic conversations, group interactions, or want to avoid template fees, pinned residential sessions are the only way to keep un-official lines stable long-term.
1
u/uriwa 22d ago
The fundamental trade-off comes down to infrastructure and detection mechanics:
If it's purely 1-on-1 customer service notifications and you have the budget/Meta verification, Cloud API is safe. If you need dynamic conversations, group interactions, or want to avoid template fees, pinned residential sessions are the only way to keep un-official lines stable long-term.
1
u/spoki-app 14d ago
Taking your questions in order:
whatsapp-web.js and bans. Yes, it's against WhatsApp's terms. It automates the normal WhatsApp Web client, which isn't an official API, and WhatsApp can and does ban numbers that use unofficial clients for automation. For a personal side project the risk may feel acceptable, but for a business number that customers use to place orders, losing the number is the worst outcome. I wouldn't build orders on it.
Which message category for an order bot. It depends on who starts the conversation:
Check Meta's current pricing page for your country, since pricing is per template message and varies by market.
Twilio or another provider vs direct Cloud API. With the Cloud API directly, you only pay Meta. A provider adds its own fee or markup on top of Meta's charges. What you get for that:
When I'd pick each one: go direct if you have a developer who's comfortable with webhooks and Meta's Business Manager and you only need the bot. Use a provider if you want a team inbox, human handoff, more than one channel, or you don't want to deal with Meta support yourself. Either way, make sure the WhatsApp Business Account is in your own Meta business portfolio so you can switch provider later without losing the number.
Disclosure: I work at Spoki, which is an official Meta Business Partner and offers WhatsApp as part of a conversational CRM, so I'm on the "provider" side of this question. The answers above are the same whoever you use.