Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

How to store Complete conversation history ?

(0) ShareShare
ReportReport
Posted on by 49

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 ?

Categories:
  • Sohom Rik Profile Picture
    49 on at
    Re: How to store Complete conversation history ?

    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?

  • theMac Profile Picture
    on at
    Re: How to store Complete conversation history ?

    Ideas?

     

  • theMac Profile Picture
    on at
    Re: How to store Complete conversation history ?

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

  • adilei Profile Picture
    on at
    Re: How to store Complete conversation history ?

    What is this hostname - forum.pixsys.net ?

  • theMac Profile Picture
    on at
    Re: How to store Complete conversation history ?

    theMac_0-1712660737762.png

    I suppose it try to extract the token string from 

    ...
    value: {
     DirectLineToken: token
     }
    ...

    and this breaks all... 

  • adilei Profile Picture
    on at
    Re: How to store Complete conversation history ?

    Look for errors in dev tools

  • theMac Profile Picture
    on at
    Re: How to store Complete conversation history ?

    no error, blank canvas
    Browser inspector tells me "Uncaught ReferenceError: conversationInfo is not defined at <anonymous>:1:1"

  • adilei Profile Picture
    on at
    Re: How to store Complete conversation history ?

    Now I understand what you're trying to do... your comment on the other thread did not have context 🙂

     

    What error are you getting?

     

     

  • theMac Profile Picture
    on at
    Re: How to store Complete conversation history ?

    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);
     }
     );
  • adilei Profile Picture
    on at
    Re: How to store Complete conversation history ?

    See if this helps: Solved: Re: I want to retrieve user bot conversations usin... - Power Platform Community (microsoft.com)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 74

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard