web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Autonomous Agents
Unanswered

Creating variables from trigger actions

(1) ShareShare
ReportReport
Posted on by 7
Hi,
 
I’m working on an autonomous agent that is triggered when a row is added, modified, or deleted in Dataverse. The trigger itself works fine, and I can do basic actions like sending emails. Now, I want to pass the trigger payload into a topic, where I use AI Builder to analyze and categorize the data, then write the results back to another Dataverse table.Has anyone done something similar? 
 
Specifically:
  • How do you capture the trigger payload into a variable?
  • How can I use that variable inside a topic that includes an AI Builder action?
 
Any suggestions, examples, or patterns are welcome!
I have the same question (0)
  • Rafsan_h Profile Picture
    7 on at
    Creating variables from trigger actions

    Thanks, @Michael E. Gernaey!

    In my scenario, the agent is triggered when a new row is added to Dataverse. In the trigger flow, I added a Compose action to limit the columns being passed to the agent. Once triggered, the agent only receives three columns: Request title, Request description, and Request date.

    Next, I want to add a Prompt tool that takes these inputs and classifies the information. After classification, I plan to add another tool to log the results into a different Dataverse table, essentially storing the classified information.

    My flow steps are:

    1. Trigger – When a new row is added to Dataverse
    2. Prompt tool – Use the trigger payload to classify the information.
    3. Write results – Store the classification in another Dataverse table.

    Main question: How can I take the trigger payload outputs and use them as inputs for the AI Builder Prompt tool?

  • Michael E. Gernaey Profile Picture
    47,111 Super User 2025 Season 2 on at
    Creating variables from trigger actions
     
    Let me give you an example. give me a short bit I will write one for you.
     
    It is pretty easy as, you can pass back the values from the Flow, pass back whatever message (Prompt) you need to trigger the proper Trigger (phrases) and then it will also pass that Trigger the Json (for instance for Email received). And you access it there.
     
     
  • Rafsan_h Profile Picture
    7 on at
    Creating variables from trigger actions
    @Michael E. Gernaey thanks for your comment. Yes, I can use different Tools but how can I get the raw outputs of the agent trigger?
  • Michael E. Gernaey Profile Picture
    47,111 Super User 2025 Season 2 on at
    Creating variables from trigger actions
     
    I feel like I responded to this one on another thread? probably just similar.
     
    I can understand if you have a Trigger that you want to "trigger" actions (now called Tools), but I am not sure why you would use a Topic here versus triggering a Tool to do the work you are saying
     
    1) you could just do it all in the Trigger itself, depending on what you are doing
    2) create the appropriate Tools and have the Trigger, trigger those to do the rest of the work and then pass in the values via the output of the Trigger. 
     
    The point of the Prompt itself, is to send back data to the agent, so in the Prompt itself you can add the trigger phrases for Topics and pass back the data, and it will be available from the Trigger and {namehere} based on what you send back.
     
    Or you use the prompt to trigger the Tools(aka old actions) to do the AI work you are referring too.
     
    Does it have to be a topic? versus having Tools trigger, which is more the Async perspective, since you dont have conversations usually in autonomous agents, so I turn off all my topics.
     
    You can have them, just to be clear, I just wasn't sure based on the Steps you need to take, that using a Topic, versus a Tool is the best choice.
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2