Comments (5)
OK. thanks for this.
from smooch-bot-example.
If you configure your Smooch webhook with the message:appMaker
trigger, then your bot will be able to process messages received from Slack or Front. Your bot should make sure to check the role
of the message to know whether it was sent by the user, or a member of your team before deciding how to handle the message.
from smooch-bot-example.
I did it. Thanks for pointing this out.
here What I did in heroku/index.js
app.post('/slack', function(req, res, next) {
const trigger = req.body.trigger;
switch (trigger) {
case 'message:appMaker':
console.log('message:appMaker');
handleBusinessMessages(req, res);
break;
default:
console.log('Ignoring unknown webhook trigger: /slack', trigger);
}
});
in smooch configuration
https://www.dropbox.com/s/6hqaalmau0na3gh/Screenshot%202017-01-10%2015.27.46.png?dl=0
Now I can pass the message from the slack/front through my code. BUT
Can we control this i.e . The message (from slack/front) should not be displayed/rendered to our customer unless we process it. Right now its got received to our customers immediately once we send it from slack/Front. Like is there any method bot.say("bla bla bla")
i.e appMaker.say("bla bla") etc ;)
from smooch-bot-example.
Any message you send through Slack/Front will be added to the conversation history (and visible by the user) - there isn't currently a way to prevent this behaviour
from smooch-bot-example.
Is there currently a way to prevent this? In other words: Smooch as a reverse proxy would be very nice.
from smooch-bot-example.
Related Issues (20)
- Reply button in web embedded widget opens new browser tab on click HOT 4
- Restarting the bot conversation HOT 2
- smooch-bot-example not switching to another block
- Simulating typing status HOT 1
- Bot states inconsistent with multiple user messages. HOT 3
- smooch Bot /help menu implementation HOT 4
- Smooch Webhook - Bad Request HOT 1
- Deploy to AWS Lambda HOT 4
- Passing a param from heroku/index.js to a certain state in script.js HOT 1
- how to get last bot state HOT 3
- How to deploy this to existing heroku app. HOT 1
- App crash on PROD heroku HOT 3
- Reset bot state to => 'start' after 15 minutes of idle chat
- [REQUEST] HOT 1
- Cannot send message to our customer when customer did not write first. :( HOT 5
- Changing Script
- how to move bot receive step in script.js
- How to send sms to chatbot user using twilio with smooch API
- Uncaught (in promise) Error at o (shallowEqual.js:18) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smooch-bot-example.