Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 0Dj3BoZRwsUk/VzlTn/F27
Copilot Studio - Topic Creation & Management
Unanswered

take echo bot waterfall dialog and convert it to a composer dialog which can be uploaded to PVA chat bot

Like (0) ShareShare
ReportReport
Posted on 30 May 2023 15:59:57 by 8

Hi,

actually my requirement is I have a sample echo bot  with waterfall dialog and i want to convert into composer which can upload to pva chat bot. I got the little bit information like below.

goutham010_0-1685462061728.png

 

 or 

goutham010_1-1685462152187.png

in the above screenshots they have mentioned we can upload the  .dialog file which is generated from the composer  into pva . but I'm unable to find file uploading option in pva canvas. could please give any information or documentation links for can we migrate waterfall dialog and convert it to a composer dialog which can be uploaded to PVA.

  • HenryJammes Profile Picture
    on 07 Jun 2023 at 09:08:43
    Re: take echo bot waterfall dialog and convert it to a composer dialog which can be uploaded to PVA chat bot

    @goutham010 as far as I know, there is no supported or documented way to programmatically deploy Bot Framework Composer dialogs to Power Virtual Agents. I'm not sure where this piece of code comes from.

  • goutham010 Profile Picture
    8 on 07 Jun 2023 at 08:16:08
    Re: take echo bot waterfall dialog and convert it to a composer dialog which can be uploaded to PVA chat bot

    I found some sample code  for  uploading composer dialog files into PVA. does this concept fill my request. or else do we have any documentation for related my requirement.

    same code below like 

    class Program
    {
     static async Task Main(string[] args)
     {
     // Set up HttpClient
     using (HttpClient client = new HttpClient())
     {
     string pvaApiEndpoint = "https://<YOUR_PVA_INSTANCE_NAME>.api.crm.dynamics.com/api/botmanagement/v1.0/";
    
     // Authenticate to the Power Virtual Agents API
     client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "<YOUR_PVA_API_TOKEN>");
    
     // Create a new dialog in Power Virtual Agents
     string dialogName = "NewDialog";
     string dialogContent = "<YOUR_COMPOSER_DIALOG_JSON>";
    
     // Prepare the request body
     var requestBody = new
     {
     name = dialogName,
     content = dialogContent
     };
    
     // Convert the request body to JSON
     var jsonContent = Newtonsoft.Json.JsonConvert.SerializeObject(requestBody);
    
     // Send the request to create the dialog
     var response = await client.PostAsync($"{pvaApiEndpoint}bots/<YOUR_BOT_ID>/dialogs", new StringContent(jsonContent, System.Text.Encoding.UTF8, "application/json"));
    
     // Check the response status
     if (response.IsSuccessStatusCode)
     {
     Console.WriteLine("Dialog created successfully!");
     }
     else
     {
     Console.WriteLine("Failed to create the dialog. Status code: " + response.StatusCode);
     }
     }
     }
    }

     

  • HenryJammes Profile Picture
    on 31 May 2023 at 20:22:53
    Re: take echo bot waterfall dialog and convert it to a composer dialog which can be uploaded to PVA chat bot

    Hi @goutham010,

     

    I'm not sure where these instructions come from, but there is no automated process to convert a Composer dialog to a PVA one. You'd need to recreate it in the PVA unified authoring canvas.

     

    Henry

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Loading started