Giter Club home page Giter Club logo

Comments (2)

bmwas avatar bmwas commented on June 30, 2024 1

@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.

murtaza98 avatar murtaza98 commented on June 30, 2024

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

  1. 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
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.