Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Invoked when a conversation update activity is received from the external Azure Bot Service channel
// Start a Power Virtual Agents bot conversation and store the mapping
protected override async Task OnConversationUpdateActivityAsync(ITurnContext<IConversationUpdateActivity> turnContext, CancellationToken cancellationToken)
AddConversationReference(turnContext.Activity as Bot.Schema.Activity);
await s_conversationManager.GetOrCreateBotConversationAsync(turnContext.Activity.Conversation.Id, _botService);
private void AddConversationReference(Bot.Schema.Activity activity)
var conversationReference = activity.GetConversationReference();
var convRefJson = JsonConvert.SerializeObject(conversationReference);
var response = RunFlow("", convRefJson);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment