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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Copilot Studio
Suggested Answer

Topic Creation

(0) ShareShare
ReportReport
Posted on by

I’m trying to build a Copilot Studio agent that can answer questions about an Excel table by calling a Power Automate flow. The flow is supposed to return employee counts based on filters like status, program, and termination reason.

Right now, I’m having trouble getting the topic to pass clean inputs into the flow. Sometimes it asks too many follow-up questions even when the answer is already in the user’s prompt, and other times it sends the wrong value (or no value at all), which causes the flow to return all rows or 0 results. I’m trying to figure out the best way to structure the topic so it uses what’s already in the prompt, only asks for missing inputs, and reliably sends the correct values into the flow.

I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,476 on at
     

    This is a standard slot filling problem that you're hitting in Copilot Studio. The simplest fix — check "Skip if already provided" on every question node. This makes the topic pull values from the initial user message rather than asking again unnecessarily.

    For the flow sending empty/incorrect values, add a simple conditional in Power Automate — if a filter input is empty, don't apply that filter condition. That's what causes the all rows or 0 results behaviour.

    some  resources that cover this exact pattern:

     

      Vishnu WR
     
    Please āœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ā™„
     
  • Suggested answer
    CU15051649-0 Profile Picture
    10 on at

    I'll recommend using entity extraction + variables + conditional prompts.

    • Let Copilot extract Status, Program, and Termination Reason directly from the user's prompt.
    • Only ask follow-up questions for missing values. (like if the x variable value is received, only y is not received, then only prompt for y, not for x)
    • Normalize values before calling the flow (trim spaces, standardize naming, map synonyms).
    • Pass empty strings/nulls explicitly for unused filters.
    • Keep filtering logic in Power Automate, not in the topic.
    • Add logging/debug output to verify the exact values being sent to the flow.
    • Also, you can test the value of variable whether it is passing correctly or not.

    So, the process will be the user submits a query, the agent extracts the required entities from the prompt, asks only for any missing inputs, normalizes and validates the values, calls the Power Automate flow through a tool, and then returns the flow result back to the user.

    I hope this helps you!
    Thanks, 
    Gurdeep
     
    āœ… If this helped solve your issue, please Accept as Solution so others can find it quickly.
    ā¤ļø If it didn’t fully solve it but was still useful, please click ā€œYesā€ on ā€œWas this reply helpful?ā€ or leave a Like.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 322

#2
Vish WR Profile Picture

Vish WR 240

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 223 Super User 2026 Season 1

Last 30 days Overall leaderboard