Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

How to get last user input in preview version of PVA?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to get the last user input from chat box.

Using System variable "Activity.Text" in Production version of PVA, able to get last user input. But how to achieve this same in preview version of PVA?

  • Robulane Profile Picture
    on at
    Re: How to get last user input in preview version of PVA?

    You can enable it in "AI capabilities" page

    Robulane_0-1676027083068.png

     

  • arun01 Profile Picture
    Microsoft Employee on at
    Re: How to get last user input in preview version of PVA?

    Hi @Robulane ,

     

    Thanks for the reply.

    LastMessage.Text and Activity.Text is available in preview version of PVA. But it's not available in production version of PVA.

     

    Is there a way to use system variable in production version of PVA??

  • Robulane Profile Picture
    on at
    Re: How to get last user input in preview version of PVA?

    Hi @arun01 ,

    You can also use system variable. You have two system variables for this purpose: LastMessage.Text and Activity.Text.

    Activity.Text gives you the text of the current incoming activity. LastMessage.Text gives you the text of the last message activity. Activity.Text can be null if user's incoming activity doesn't have text.

    Here is an example:

        - kind: SendMessage
          id: sendMessage_2Zj3mx
          message: "{System.LastMessage.Text}"

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

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard