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 - Calling Actions from Copilot S...
Unanswered

Store and reuse a variable fulfilled in a Tool

(0) ShareShare
ReportReport
Posted on by
Hi folks,
 
I'm working on a workaround to integrate Copilot Studio with Agents in AI Foundry, because at the moment that integration is not available.
I have an agent that calls a tool, and that tool triggers a Logic App flow via an HTTP call. The Logic App flow receives the agentId, threadId, and userQuery, and executes the process steps to interact with the agent (create thread, create run, etc.). It then returns the threadId and the answer from the AI Foundry Agent.

In order to maintain the conversation, I need to store the threadId returned by the Logic App in a variable, so I can send it in subsequent calls. However, I can't find a way to create a variable that is associated with the conversation (or globally).

How can I do that?

 
Thanks in advance.
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    48,534 Super User 2025 Season 2 on at
    Store and reuse a variable fulfilled in a Tool
     
    Any update on this?
  • Michael E. Gernaey Profile Picture
    48,534 Super User 2025 Season 2 on at
    Store and reuse a variable fulfilled in a Tool
     
    If you can share your Tool it would help as in your Tool, you would output the data and inside your Agent, you can even have General Instructions that grab that information directly such as {/click<== grab the value here } or you can also in a Topic, use variable management to create a variable and grab it from the Tools output to create a Global Variable.
     
    But to show you exactly how for your Tool if you can share the Tool you have (like what it does) and then how you have the output and the format of it I can be more specific.
     
     

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 315 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 235 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 166 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics