bots


Facebook Messenger Chatbot messages tagging (of sorts)


I have a Facebook Messenger bot (written in NodeJS) and a separate control panel where a user can manage the information that the bot is working with (like inventory stock, etc.). One of those things is a log of all conversations between the bot and a visitor. The control panel allows the admin users to send messages to visitors through the bot. There is an input box where they can type in a message and when they click 'Send', the message goes to the bot app, which then sends it back to the user through Send API.
Messages are logged into a database; those going to the bot (from the visitor) are logged when they're received, and those the bot responds with are logged through the 'echo' callback.
The problem with this is that the bot can reply to certain visitor commands (phrases) and tries to perform certain actions based on the input. I'm using Wit.ai for this, but due to the scope of the possible phrases and keywords, the default mode when someone sends a text message is to send it to Wit.ai for processing. However, if an admin user sends the visitor a message from the control panel, the visitor could want to respond to that message (instead of sending a bot command) and that response should not go to the Wit.ai for processing. And due to the sheer scope of possible variations of what can be said, coupled with the fact that they can actually use some of the keywords in the response as well, processing the intent with Wit.ai in that case is too uncertain.
I was wondering if there's a way to somehow identify/mark the source of the messages that the bot sends to the visitor, so when an echo callback comes, I can know if it's, say, from a regular bot routine or from a user-entered reply. Like some additional meta tags that could be sent with the message that would also get returned with the echo, but that doesn't pollute the message itself. Is something like that possible? Or is there a different way I can achieve the same result.
I don't wether that helps you, but Facebook just recently integrated a quite mysterious Tag feature for bots.
https://developers.facebook.com/docs/messenger-platform/send-api-reference/tags

Related Links

In LUIS, how to add list of synonym for each valid entry of entity? [closed]
Telegram bots not working for all users
Rich text format for response text in facebook chatbot
Wit.ai stories with branch
How to do a decision tree on MS Bot Framework?
How can we refresh the skype bot token
get recently posts on vbulltein and send to Telegram bot
How to get skype bot id using access token
How can I integrate my Bot (created with the Bot Framework) with Spark?
Microsoft Bot says “The process cannot access the file because it is being used by another process.”
When should we use all three (trait, free-text and keywords) search strategies in a user-defined entity?
alternative to wit.ai merge since it is deprecated now
my telegram bot keeps sending messages endlessly
Telegram: don't search my bot to start conversation
How to add MS bot to slack?
How to get the last executed command in a Telegram bot?

Categories

HOME
google-chrome
openshift
mpdf
bokeh
schema.org
add-on
operating-system
website
typeerror
share
cdi
jpa-criteria
stack-overflow
powermock
cuba-platform
max-msp-jitter
l20n
maven-plugin
bosun
kaggle
acl
software-packaging
unordered-multimap
tracing
crud
sap-lumira
marquee
openbr
steam-web-api
commonsware-cwac
rust-cargo
cmis
android-canvas
keyboard-layout
landscape
redgate
jslint
cargo
djcelery
nanogallery
django-crispy-forms
ms-dos
llvm-ir
google-now
game-center
netapp
grails-spring-security
resampling
data-uri
classnotfoundexception
vb.net-to-c#
jqgrid-asp.net
xcode8.2
flume-twitter
cyanogenmod
node-apn
solr-query-syntax
punctuation
kendo-editor
alertify
swiperefreshlayout
rational-performance-test
pjax
livereload
dcount
jenkins-workflow
eclemma
vaadin4spring
gravatar
cryptojs
asp.net-web-api-helppages
espresso
green-threads
google-gdk
deque
gflags
html-escape-characters
tkx
phonegap-facebook-plugin
famo.us
comctl32
cout
smacss
producer
visual-studio-6
git-reset
csslint
senchatouch-2.4
jack
strdup
acitree
jquery-transit
jquery-lazyload
axacropdf
dibs
session-0-isolation
tridion-2011
ip-geolocation
daap
towers-of-hanoi
uitextfielddelegate
gamesalad
type-safety
wiktionary
infopath-2007
asio
asp.net-mvc-views
bass
ios-4.2
cassini
asdoc
jquery-effects
iphone-sdk-3.1.3
stretchblt

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App