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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Power agent / Dynamic ...
Copilot Studio
Answered

Power agent / Dynamic content in flow

(0) ShareShare
ReportReport
Posted on by 133

Hello,

 

I am brand new to power Apps and Agents. I am currently trying to create a tech support chatbot and I am trying to figure out how to take info from the user and put it in an email.

 

I have created a flow to send an email and the chatbot triggers it ok - the email gets sent.

 

The problem I have is getting the bot to pass user submitted info into the email.

 

In the flow, I am selecting the "ad dynamic content" and I'm expecting to see the variables from the bot but there's nothing available.

 

The flow and bot are in the same environment and solution - what am I missing?

 

Thanks,

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,388 Most Valuable Professional on at

    Hi @adrian-m,

     

    Can you share a couple of screenshots of your current setup (pva topic and flow) and show us which variables you are exactly missing in the flow?

     

     

     

  • adrian-m Profile Picture
    133 on at

     

    So the "To" address will always be the same. I want to gather responses from the user and put them in the body of the email. 

    For the sake of the test I have just made a single question asking for the users email address, saved as VarEmail.

     

    When looking at other peoples examples, they just seem to click dynamic content and they can choose field they want from the agent

     

     

     

    adrianm_0-1636040559447.png

    adrianm_2-1636040974000.png

     

     

     

     

     

  • Expiscornovus Profile Picture
    33,388 Most Valuable Professional on at

    Hi @adrian-m,

     

    You can add an text input variable in the flow trigger action. In the bot you can map your varEmail to that text input variable. After that you can use it as dynamic content.

     

    Below is an example of such a mapping.

     

    1. Input and output in your flow.

     

    inputoutputflow.png

    2. Mapping to input of flow with your variable.

     

    inputoutput.png

  • Verified answer
    adrian-m Profile Picture
    133 on at

    It works! Thanks!! 

    although I am very confused what the logical steps are lol.


    So first of all I have to add an input in the flow trigger. I then return that input back to the agent with the return value node.
    Then in the agent, in the flow action, I map the input from the flow with inputs from the agent?

  • adrian-m Profile Picture
    133 on at

    .

  • Expiscornovus Profile Picture
    33,388 Most Valuable Professional on at

    Hi @adrian-m,

     

    Great to hear that it works. 

     

    Maybe my explanation wasn't that clear 😁. Microsoft also has a nice document about this setup which might help?

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 228

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
chiaraalina Profile Picture

chiaraalina 112

Last 30 days Overall leaderboard