cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JoshT14
Level: Power Up

Virtual Agent action but no Flows to select

Hi all,

 

First time posting here. Recently started working with the Virtual Agent and I'm trying to add an action (Flow) that I have in Power Automate. I believe I have done everything correctly - but clearly I'm missing something as the Flow is no provided for selection.

 

I created a Flow in My Flows, I subsequently created a new Solution (within the same Environment as the Bot) and added the existing Flow from My Flows. Following these guidelines as suggested: https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow#move-a-flow-to-the-solutions-tab...

 

However, I still cannot see the Flow when trying to add an action within the authoring canvas. I then found another article suggesting that the Flow should be in the CDS Solution but that doesn't work either. Does anyone have any suggestions to help resolve?

 

Thanks,

Josh

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft jpirelli
Microsoft

Re: Virtual Agent action but no Flows to select

So far, every time I have seen this it has been due to the JSON being incorrect or the flow not being in the 'solutions' areas. I'd say dig up the articles on those two things and I bet you will find they show up.

View solution in original post

8 REPLIES 8
Microsoft MarKol
Microsoft

Re: Virtual Agent action but no Flows to select

Hi Josh,

 

There are several common reasons why you would not see a flow in Action picker in Power VA.

 

  • Bots can only invoke flows that have HTTP Request interfaces, so you need to select the right trigger for your flow. Make sure to use When Http Request is received trigger, as t is shown in the template.
    •  Make sure you are using the POST method under advanced options in the HTTP Request trigger (or leave the method field empty, which is how it is by default).

 

  • You need to use variable types supported by Power Virtual Agents in your flow. The supported variable types in Virtual Agents that can be used with flows are: 
    • String
    • Number
    • Boolean 

Note that Arrays (Lists) are currently not supported in Power Virtual Agents. If unsupported variables types like Arrays (Lists) are used in a flow,it will not show up in Action picker.

 

  • If a flow has a malformed Request or Response JSON Shema or Body, Power Virtual Agents will not be able to recognize as valid and this flow will not show up in the flow picker in Action node. 
D365Goddess
Level: Powered On

Re: Virtual Agent action but no Flows to select

I wrote an article on how to do this: https://d365goddess.com/power-virtual-agent-power-automate/
Microsoft jpirelli
Microsoft

Re: Virtual Agent action but no Flows to select

There is a new feature inside call an action to Create a Flow which will spin up a template with a sample input and output string. From there you should be able to easily modify it and insert your custom flow steps in the space just after the initialize variables steps provided.

@D365Goddess- Nice article! Keep em coming!

nicky_t
Level: Powered On

Re: Virtual Agent action but no Flows to select

Hi @MarKol ,

I was wondering If I use an array list within a flow, but the trigger and outputs of the flow are all strings, should that work?

 

I've created a flow that appends all entities of the array to a string before outputting, but it isn't listed in 'call an action'. I'm trying to rule out if it's my error or not.

 

Thanks

Nicky

nicky_t
Level: Powered On

Re: Virtual Agent action but no Flows to select

Nevermind, it was a malformed JSON schema on the end node. Might be worth to noting you can append items from an array to string to output though

Microsoft kianlutu
Microsoft

Re: Virtual Agent action but no Flows to select

Hi MarKol,

 

I'm receiving the same issue as JoshT14. The solution you provided did not resolve this issue. I have a pretty simple flow that takes in two string types to query a sql table. 

 

Do you have any other ideas on what may be causing this issue?

 

Thank you,

 

Kian

Microsoft jpirelli
Microsoft

Re: Virtual Agent action but no Flows to select

So far, every time I have seen this it has been due to the JSON being incorrect or the flow not being in the 'solutions' areas. I'd say dig up the articles on those two things and I bet you will find they show up.

View solution in original post

Administrator
Administrator

Re: Virtual Agent action but no Flows to select

Chatted w/ kianlutu and it was a JSON issue 

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,122)