Comments (2)
@murtaza98 Thank you so much for your response.
As for your forwarding question, I am not doing the forwarding/handover at this point as the intention is to have the bot complete most of the dialog and then possibly in the next step add a handover action.
I have generated the logs as requested - please see below. Also, I have grabbed another console printout that shows the first two responses of the dialog are successful but the third response is not returned to the sms number which in a strange way I can see the bot responded once I login as the omnichannel account manager but the third response is not sent back to Twilio. Thank you so much!
REQUESTED LOGS BEGIN HERE
Instance: BLGhLXfXhJQLrKTEt
debug: 2021-01-01T06:06:58.819Z Caller: anonymous OR constructor
[
"executePostMessageSent is being called..."
]
debug: 2021-01-01T06:06:58.918Z Caller: anonymous OR constructor
[
"'executePostMessageSent' was successfully called! The result is:",
null
]
Instance: BLGhLXfXhJQLrKTEt
debug: 2021-01-01T06:06:58.953Z Caller: anonymous OR constructor
[
"executePostMessageSent is being called..."
]
debug: 2021-01-01T06:06:58.954Z Caller: anonymous OR constructor
[
"'executePostMessageSent' was successfully called! The result is:",
null
]
January 1, 2021 1:07 AM: "executePostMessageSent" (1091ms)
Instance: BLGhLXfXhJQLrKTEt
debug: 2021-01-01T06:07:07.471Z Caller: anonymous OR constructor
[
"executePostMessageSent is being called..."
]
debug: 2021-01-01T06:07:08.562Z Caller: anonymous OR constructor
[
"'executePostMessageSent' was successfully called! The result is:",
null
]
January 1, 2021 1:07 AM: "executePostMessageSent" (1ms)
Instance: BLGhLXfXhJQLrKTEt
debug: 2021-01-01T06:07:08.575Z Caller: anonymous OR constructor
[
"executePostMessageSent is being called..."
]
debug: 2021-01-01T06:07:08.576Z Caller: anonymous OR constructor
[
"'executePostMessageSent' was successfully called! The result is:",
null
]
CONSOLE PRINTOUT BEGINS HERE
==============
SMS to omnichannel - "hello"
Console output
I20210101-00:29:18.916(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is requesting from the outter webs: {
I20210101-00:29:18.916(-5)? appId: '646b8e7d-f1e1-419e-9478-10d0f5bc74d9',
I20210101-00:29:18.916(-5)? method: 'post',
I20210101-00:29:18.916(-5)? url: 'http://localhost:5001/webhooks/rest/webhook',
I20210101-00:29:18.917(-5)? request: {
I20210101-00:29:18.917(-5)? headers: { 'Content-Type': 'application/json' },
I20210101-00:29:18.917(-5)? data: { sender: 'w8H8K6qgM93K4T6hS', message: 'hello' },
I20210101-00:29:18.917(-5)? params: {},
I20210101-00:29:18.917(-5)? content: '{"sender":"w8H8K6qgM93K4T6hS","message":"hello"}',
I20210101-00:29:18.917(-5)? npmRequestOptions: {}
I20210101-00:29:18.929(-5)? }
I20210101-00:29:18.929(-5)? }
I20210101-00:29:18.974(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is getting the username: "bot1"
I20210101-00:29:18.976(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is getting the roomById: "w8H8K6qgM93K4T6hS"
I20210101-00:29:18.985(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is creating a new message.
BOT response to SMS number "How are you?"
Console output
I20210101-00:29:18.974(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is getting the username: "bot1"
I20210101-00:29:18.976(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is getting the roomById: "w8H8K6qgM93K4T6hS"
I20210101-00:29:18.985(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is creating a new message.
I20210101-00:31:48.280(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is requesting from the outter webs: {
I20210101-00:31:48.280(-5)? appId: '646b8e7d-f1e1-419e-9478-10d0f5bc74d9',
I20210101-00:31:48.280(-5)? method: 'post',
I20210101-00:31:48.280(-5)? url: 'http://localhost:5001/webhooks/rest/webhook',
I20210101-00:31:48.280(-5)? request: {
I20210101-00:31:48.280(-5)? headers: { 'Content-Type': 'application/json' },
I20210101-00:31:48.280(-5)? data: { sender: 'w8H8K6qgM93K4T6hS', message: 'i am ok' },
I20210101-00:31:48.280(-5)? params: {},
I20210101-00:31:48.281(-5)? content: '{"sender":"w8H8K6qgM93K4T6hS","message":"i am ok"}',
I20210101-00:31:48.281(-5)? npmRequestOptions: {}
I20210101-00:31:48.281(-5)? }
I20210101-00:31:48.281(-5)? }
I20210101-00:31:49.315(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is getting the username: "bot1"
I20210101-00:31:49.317(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is getting the roomById: "w8H8K6qgM93K4T6hS"
I20210101-00:31:49.327(-5)? The App 646b8e7d-f1e1-419e-9478-10d0f5bc74d9 is creating a new message.
NO response from BOT anymore BUT - the response is actually posted on the omnichannel as I've checked through the omnichannel account manager BUT the last response is never sent to twilio/sms.
from apps.rasa.
Hey @bmwas
error-forwarding-chat-same-department
<- Ideally, this error should actually take only when we are using the handover endpoint(ref). By any chance are u using this?
If not, then could u provide some more info by following the below 2 steps, it will help me to debug the issue
- Goto app logs (Administration -> Apps -> Rasa -> Click 3 dots -> View Logs). Here expand some of the latest
executePostMessageSentHandler
and see if there is some unusual logs eg errors, warnings, etc - Currently u are using the app in synchronous mode. Do u mind trying the app in
Asynchronous / Callback Mode
. More info about this mode is available in the docs here on github
Please let me know what u find, Thanks! 😄
from apps.rasa.
Related Issues (20)
- Compatibility with Rocket.Chat 3.11.0 is broken HOT 2
- Different Status Code when handover fails HOT 2
- Settings not working HOT 3
- [ERROR] Exception occurred while handling uri
- Handoff action.py? HOT 3
- Customer handover happens only once HOT 10
- Offline form display
- how to add initial payload to start a new conversation? HOT 2
- transfer to department not working as intended HOT 4
- The Rasa app does not receive a message HOT 2
- how to get the sessionID? HOT 3
- Error while trying to handover
- Rasa app PostMessageSentHandle HOT 2
- Rasa app authorization required HOT 2
- incoming script
- Bot not showing images HOT 1
- Rasa App not sending images to livechat HOT 3
- ["livechat-department.multiple"]. Declare them in your app.json to fix the issue.
- session id not valid while human handoff HOT 1
- Rasa App executePostMessageSent returning null
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 apps.rasa.