Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

I want to call an api periodically in power virtual agent recursively

(0) ShareShare
ReportReport
Posted on by

Hi Team,


I would like to integrate third party agent Api's (Genesys) into PVA topic (Copilot Studio).
I have created a power automate flow and able to post customer messages to Genesys live agent with help of HTTP connector.

After posting message to Live Agent, I want to make another API call for receiving messages from live agent. I am able to receive message from agent with help of another API call. But Agent sends multiple messages, I want to display those messages to customer in the PVA. 

FYI: Genesys Cloud will send live agent messages to a configured our endpoint or webhook URL.

In order to sync messages sent by live agent, I have to call second API continuously on periodical basis. I tried doing this using "Go to Step" task but after 100 seconds getting infinite loop exception.

I want to run this flow with help of Go to Step continuously on periodical basis, so that we can sync live agent messages to PVA bot. Once we receive new message from user, it should end previous flow execution and should start execution the flow from the beginning. 

Can you please suggest the solution to my requirement.  Is there any solution available in the Copilot studio to my requirement.

Categories:
  • Community Power Platform Member Profile Picture
    on at
    Re: I want to call an api periodically in power virtual agent recursively

    Hi Peter,
    Thank you for the reply,
    I have already explored below approach, in this approach, PVA bot should integrated into Architect flow Genesys Bot. We do not want to integrate in that way.
    https://github.com/GenesysCloudBlueprints/bot-connector-for-ms-power-virtual-agent https://learn.microsoft.com/en-us/microsoft-copilot-studio/customer-copilot-genesys-handoff

    Requirement: User should be remains on PVA bot and should be able to communicate with Genesys Live agent. Genesys Cloud provides REST API's for communicating with Genesys Live Agent. So, I am trying hard to establish communication between customer and live agent using REST API's but not able to sync messages of Genesys Live Agent as I am not able to run flow continuously. Do you have any other solution to my requirement?

  • peterswimm Profile Picture
    Moderator on at
    Re: I want to call an api periodically in power virtual agent recursively

    Instead of trying to insert calls in the runtime, why not instead do a direct handoff to genesys? 

     

    https://learn.microsoft.com/en-us/microsoft-copilot-studio/customer-copilot-genesys-handoff

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
stampcoin Profile Picture

stampcoin 6

#2
Artur Stepniak Profile Picture

Artur Stepniak 5 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

Overall leaderboard