Hi guys, is there a way to check if a user opens a link sent by the bot? So basically this is what I’m trying to achieve. The bot sends a link to the user. The users has to open the link and view the content. The bot will then check if the user has opened the link and if so proceed onwards to the next step. Else, the bot will respond with ‘You have not viewed the link’. Appreciate your replies. Once again thanks
Validate whether user opens link using built in telegram browser
Hi Nick,
The way that links are normally tracked is by logging the user’s visit to the web page (usually a script on the webpage/server).
You could use the Wait service to make your bot wait around a while and send a webhook to Flow XO from your web page when the user visited it. You could add/update an attribute to indicate whether the page was visited, which you could check after your bot has done waiting.
You’d need to include the user’s response path in the query string of the URL so that you could match the visitor to the bot conversation.
Hopefully, this all makes sense.
Okay I think I somewhat get what you mean haha. Btw does flow xo have a customised plan? Currently I jus need 5 flows in for my bot but I need more interactions. Is there an unlimited interactions plan? Because the other plan with 25000 interactions is not enough for my bot. If so how much does it cost? Once again thanks!
Hi Nick,
Your bot sounds real interesting. We can’t wait to see it in action
We’re currently just doing the one pack size (25k) but you can add as many of the ‘Additional 25k Interactions’ subscriptions as you need. So if you added two to your account, you’d get 52,500 interactions per month. That would be 2,500 inclusive of the standard plan and then 2x 25,000 additional interactions.
You can add them pro rata as well so if you need more part way through your billing period you can just add them on but you’ll be charged pro rata if you’re part way through your billing period
Hahaha thanks By the way, I saw under the interaction description that any flow that is filtered out doesn’t count as an interaction. So how do I go about doing that? For instance, I intend to limit every user to only use the bot three times a day. After which they would not be able to use until a few hours later or the next day etc. So if they were to try communicating with the bot, the bot will not reply them thus based on what I understand it will not count as an interaction and instead the bot will wait until a specific time later.
Hi Nick,
You can filter flows by adding a filter to the trigger of the flow. So for a Bot trigger, you could filter on response path or username etc
For what you need, though, you wouldn’t be able to filter out the flow because you’ll need to go into the flow to perform some logic like getting the number of times that the user has visited today etc
Hello! I found this topic similar to my question so I will try to explain what I’m trying to achieve.
I’m showing a button in my bot that will open a webview to access registration webpage on my website. After successful registration user needs to close the webview to get back into the bot. Now my question is, is there any way or a callback where I can get notified when the user closes the webview so I can proceed with the next step in my bot without user entering any new command!
Any help is appreciated.
Thank you!
If your page can make use of Webhooks & HTTP then you could POST back to the Broadcast service with the user’s response path and any information from your site that’s associated with the user.
Facebook Messenger bots also have m.me links that can be appended with ?ref values that could possibly be used here - you would need a catch-all flow setup to capture the metadata as the user comes back to your bot.
Hi @Ali ,
When using messengers webview there’s an option to close the webview using messengers requestCloseBrowser
At the moment Flow Xo are not handling the success callback (unfortunately) so nothing is triggered when the webview closes.
If you Search MessengerExtensions.requestCloseBrowser(function success() on stack overflow there are some examples of users that instead are using in their script a success URL so hypothetically you could send a webhook into Flow XO which then sends back messages. ??? - You would need to be passing back through the response path though so that you know how to route a message back to the user
… Just a thought of a way you might be able to close the window continuing a conversation
Sarah.