Skip to main content

Notifications

Copilot Studio - General
Answered

Power agent / Dynamic content in flow

Posted on by 30

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,

  • Expiscornovus Profile Picture
    Expiscornovus 1,708 on at
    Re: Power agent / Dynamic content in flow

    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

     

  • adrian-m Profile Picture
    adrian-m 30 on at
    Re: Power agent / Dynamic content in flow

    .

  • Verified answer
    adrian-m Profile Picture
    adrian-m 30 on at
    Re: Power agent / Dynamic content in flow

    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?

  • Expiscornovus Profile Picture
    Expiscornovus 1,708 on at
    Re: Power agent / Dynamic content in flow

    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

  • adrian-m Profile Picture
    adrian-m 30 on at
    Re: Power agent / Dynamic content in flow

     

    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
    Expiscornovus 1,708 on at
    Re: Power agent / Dynamic content in flow

    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?

     

     

     

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,995

#3
Expiscornovus Profile Picture

Expiscornovus 1,708

Leaderboard