Hi ! I am developing a Co-pilot and one of my requirement is to Store Complete conversation with Co-pilot . Can anyone help me out on this ? How can I achieve this ?
I'd like to incorporate a co-pilot feature on a website, similar to what you might see on a homepage for customer assistance. Could you please provide detailed steps on how to implement the logic for capturing conversations?
Ideas?
the site where my cp is published (I can't test elsewhere passage of variable during canvas creation)
It's a public website (our technical forum).
What is this hostname - forum.pixsys.net ?
I suppose it try to extract the token string from
...
value: {
DirectLineToken: token
}
...
and this breaks all...
Look for errors in dev tools
no error, blank canvas
Browser inspector tells me "Uncaught ReferenceError: conversationInfo is not defined at <anonymous>:1:1"
Now I understand what you're trying to do... your comment on the other thread did not have context 🙂
What error are you getting?
Argh if I add token information on bot start it fails...
I add it here, is it right?
const store = window.WebChat.createStore(
{},
({ dispatch }) => next => action => {
if (action.type === "DIRECT_LINE/CONNECT_FULFILLED") {
dispatch({
meta: {
method: "keyboard",
},
payload: {
activity: {
channelData: {
postBack: true,
},
//Web Chat will show the 'Greeting' System Topic message which has a trigger-phrase 'hello'
name: 'startConversation',
type: "event",
value: {
DirectLineToken: token
}
},
},
type: "DIRECT_LINE/POST_ACTIVITY",
});
}
return next(action);
}
);
Romain The Low-Code...
74
Pablo Roldan
61
stampcoin
10