Recent searches
No recent searches
How can I send a message as the user and agent to the web widget?
Answered
Posted Jan 22, 2021
I have a chatbot that I'd like to transfer over to the web widget for a live agent. I need to inject the chat history from user and bot into the widget. So could I do this by having my application push chat history to the widget via the api?
0
4
4 comments
Greg Katechis
Hi Austin! Take a look at our documentation for how to do this in Sunshine Conversations!
0
Austin Jones
Hi Greg, so I am not using Sunshine Conversations. I have a custom built bot running on node.js. I was hoping to use the conversation chat API is that possible? If not, what subscription would I need for the Sunshine Conversations? Would this use the web widget for chat? Thanks.
0
Greg Katechis
Hi Austin, yes you can definitely use the Chat Conversations API! This article will explain how you can do that. I somehow missed the part where you explicitly said widget multiple times! Sorry about that!
At the moment, Sunshine Conversations does not interact this way, but we will be making some announcements later this quarter, so keep your eyes peeled...it'll be exciting!
0
Austin Jones
No problem Greg! I should've been more concise, I already read through the article you linked to and my application gets authentication, I'm stuck at subscribing to incoming messages, inside the graphQL query there is a field named
how do I get the id for and active conversation in the web widget to make this query return that specific conversation? Or am I approaching this all wrong? Sorry I guess I don't quite understand how my application can select a specific conversation.
0