https://discord.gg/botpress logo
How to send WebView links to WhatsApp?
# 🤝help
q
I want to send web view links to the user on WhatsApp (through the integration), which when clicked by the user opens up the site on WebView (Android or iOS). How can I do this?
l
Hey @quiet-jordan-74110 WhatsApp does not natively support "web view links" as a distinct output type! However you can send standard links. You can read more on Botpress + Whatsapp here: https://botpress.com/docs/integrations/integration-guides/whatsapp/mapping/botpress-to-whatsapp
q
Can't I send links and somehow ensure that they open through WebView? The local subway in my city also provides ticket booking through a WhatsApp bot, and the link it sends opens via WebView all the time. I was thinking whether Botpress offers something for that to happen.
l
After doing some research I can confirm that it is not something Whatsapp Natively supports however there seems to be work arounds. The local subway is probably using a specific implementation on their end, or a feature of WhatsApp itself that is not directly controlled by the bot platform.
l
WebView - try WhatsApp Flows - but like @loud-crowd-60573 mentioned wiring it up via Botpress is not going to be straight forward
q
You mean, the official flow maker from WhatsApp/Facebook?
l
yes, webview is part of whatsapp flow
q
👍🏼
l
but i am not sure it is a GA or only with their BSPs, the last time i check it wasn't GA
q
Would I be able to trigger a WhatsApp flow from Botpress?
l
l
Yes, you will be able to trigger a WhatsApp flow from Botpress using execute code card, but you wont be able to receive the response the flow response straight away into Botpress 1. you will need to ensure you are manually integrating WhatsApp with botpress as the flow can only be triggered using action card (graph APIs) 2. you will need a middleware that can receive the messages from META and to manage the responses to be acted upon in Botpress