Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Answered

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

(0) ShareShare
ReportReport
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,251 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,251 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,770 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,770 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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics