Variables within copilot studio allows you to store, process and configure inputs and outputs received from the user or system and process the information to display appropriate response to the user.

  • Variables can be used to route users down different conversation paths.
  • Variable can be sent to following systems as input parameter:
  • Power Automate flows
  • Bot framework skills
  • A variable is an information captured and stored in copilot so that it can be used later in the conversation
  • Variables are created automatically when you add question node to a topic
  • When you redirect to another topic you can pass values into variables in the destination topic

Variable Types

  • Custom Variables
  • Bespoke variables
  • System Variables
  • Created automatically with copilot
  • Provides contextual information about conversation or user
  • Environment Variables
  • Variables at environment level
Variable Types
 
  • Topic Variables
  • Can be used in topics in which it is created
  • Global Variables
  • Can be used in all topics
  • Environment Variables
Variable Actions
  • Set a variable value
  • Parse Values
  • Clear all variables
 
Topic Variable Usage
 
 
Variable Data Types
 
 
 
 
 
View Variables
 
 
 
Activity Variables
  • Activity.Attachments
  • Activity.Channel
  • Activit.ChannelData
  • Activity.ChannelId
  • Activity.From.Id
  • Activity.From.Name
  • Activity.Name
  • Activity.Recipient.Id
  • Activity.Recipient.Name
  • Activity.Text
  • Activity.Type
  • Activity.TypeId
  • Activity.Value

Bot Variables

  • Bot.EnvironmentId
  • Bot.Id
  • Bot.Name
  • Bot.SchemaName
  • Bot.TenantId

Conversation Variables

  • Conversation.Id
  • Conversation.InTestMode
  • Conversation.LocalTimeZone
  • Conversation.LocalTimeZoneOffset

User Variables

  • User.DisplayName
  • User.Email
  • User.FirstName
  • User.Id
  • User.IsLoggedIn
  • User.Language
  • User.LastName
  • User.PrincipalName

 

Other Variable Types

  • ClientPluginActions
  • LastMessage.Id
  • LastMessage.Text
  • Recognizer.TriggeringMessage.Id
  • Recognizer.TriggeringMessage.Text