Skip to main content

Notifications

Calling Actions from Copilot Studio
Answered

Calling a flow with a custom connector from inside a teams virtual agent

Posted on by 8

Hi everyone,

 

I'm trying to create a Teams Power Virtual Agent that uses a Power Automate Flow under the hood which in turn should use a custom connector I created. So far I did not succeed...

 

I created the custom connector in Microsoft Flow and tested it with multiple flows, the custom connector itself is working. Then I created a bot in teams and tried to call a flow that I created in Microsoft Flow but its not listed in the "Call an action" menu. I can create new flows using the "Create a new flow" menu item but those do not have access to my custom connector (it is not listed). The documentation on the Teams-specific Flow integration here links to the web-specific site here so I tried putting my connector in a solution but that did not help. Flows created via "Create a new flow" item in Teams cannot access the custom connector and flows created using Microsoft Flow (in my solution) are not visible inside the "Call an action" menu in Teams. I read that Flows you want to call from Power Virtual Agents need specific triggers and returns and created my Flows accordingly, that should not be the issue.

Flows I created in Teams are also not listed in the "Add existing" menu in the Microsoft Flow solutions page, not under "Outside solutions" and neither in "From solutions" like described in the web-specific help.

 

I was unable to find any more specific info on the topic, I'm not sure if its unsupported or if I didn't find the right knob to turn.

 

TL;DR: How can I create a Teams Power Virtual Agent that calls a custom connector in Microsoft flow?

 

I'd be happy about pointers in the right direction!

 

Regards,

Johannes

 

 

EDIT: I figured it out. You'll need to switch to the Environment your bot was created in (right upper corner of Microsoft Flow interface). However, calling custom connectors is sadly a pro feature which is not feasibly to use for us at this time 😕 Too bad.

  • sajarac Profile Picture
    sajarac 3,243 on at
    Re: Calling a flow with a custom connector from inside a teams virtual agent

    Thank you very much for your prompt response.!

  • JohannesB Profile Picture
    JohannesB 8 on at
    Re: Calling a flow with a custom connector from inside a teams virtual agent

    Hi @sajarac,

     

    this actually barely qualifies as a work-around and might not be feasible in other use cases but we use the flow from the virtual agent to insert the relevant input data into a Sharepoint list. This triggers another "automated cloud flow that" uses the "When an item is created" trigger which then performs the required action asynchronously. Of course, this comes with some challenges in regards to feedback to the user etc. It works for our specific use case but it is not pretty...

     

    Hope this helps.

  • sajarac Profile Picture
    sajarac 3,243 on at
    Re: Calling a flow with a custom connector from inside a teams virtual agent

    Hey @JohannesB , I am currently facing the same issues as you. Would you mind to share the work-around implemented? 

    Thanks in advance

  • JohannesB Profile Picture
    JohannesB 8 on at
    Re: Calling a flow with a custom connector from inside a teams virtual agent

    We implemented a work-around using a SharePoint list. Unfortunately, it doesn't make financial sense for us to switch to pro at this time.

  • Jcook Profile Picture
    Jcook 7,765 on at
    Re: Calling a flow with a custom connector from inside a teams virtual agent

    Hello @JohannesB 

     

    Are you still having this issue? Please provide an update. Thanks!

     

  • Verified answer
    Jcook Profile Picture
    Jcook 7,765 on at
    Re: Calling a flow with a custom connector from inside a teams virtual agent

    Hello @JohannesB 

    Unfortunately since you’re using a custom connector which is a “premium connector” To use this with PVA, you need the full PVA license.

     

    Docs can be found here:

    https://docs.microsoft.com/en-us/power-virtual-agents/requirements-licensing-subscriptions

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
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics