From 4e404147eb00db62e2dbb314f420a7c0df418f8d Mon Sep 17 00:00:00 2001 From: TamilRamGanesan-SF5080 Date: Fri, 17 Oct 2025 11:51:17 +0530 Subject: [PATCH 1/2] 986912: resolved Liquid syntax error --- .../bot-integrations/integration-with-bot-framework.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blazor/chat-ui/bot-integrations/integration-with-bot-framework.md b/blazor/chat-ui/bot-integrations/integration-with-bot-framework.md index 5e966901d7..95edde6805 100644 --- a/blazor/chat-ui/bot-integrations/integration-with-bot-framework.md +++ b/blazor/chat-ui/bot-integrations/integration-with-bot-framework.md @@ -125,7 +125,7 @@ Use the `MessageSend`event of the `SfChatUI` component to handle message exchang Create or modify a Razor component (e.g., `Pages/Chat.razor`) to integrate the Syncfusion Chat UI with the Direct Line API: {% tabs %} -{% highlight razor %} +{% highlight cshtml %} @using Syncfusion.Blazor.InteractiveChat @using Syncfusion.Blazor @@ -172,7 +172,7 @@ Create or modify a Razor component (e.g., `Pages/Chat.razor`) to integrate the S // Use JSInterop to initialize Direct Line (client-side for real-time updates) var directLine = await JS.InvokeAsync("eval", - $"new BotFramework.DirectLine.DirectLine({{ token: '{data.token}' }})"); + `new BotFramework.DirectLine.DirectLine({ token: '${data.token}' })`); isConnected = true; @@ -181,14 +181,14 @@ Create or modify a Razor component (e.g., `Pages/Chat.razor`) to integrate the S } catch (Exception ex) { - await ChatUI.AddMessageAsync(new ChatMessage { Text = "Sorry, I couldn’t connect to the bot.", Author = BotUserModel }); + await ChatUI.AddMessageAsync(new ChatMessage { Text = "Sorry, I couldn't connect to the bot.", Author = BotUserModel }); Console.WriteLine($"Connection error: {ex.Message}"); return; } } // Send message to bot via JSInterop - await JS.InvokeVoidAsync("sendToBot", /* directLine ref or global */, args.Message.Text, currentUserId); + await JS.InvokeVoidAsync("sendToBot", directLine, args.Message.Text, currentUserId); args.Cancel = true; // Prevent default send } From 8d203cf420e64a3db683da5f4333190b77270ab2 Mon Sep 17 00:00:00 2001 From: TamilRamGanesan-SF5080 Date: Fri, 17 Oct 2025 11:58:47 +0530 Subject: [PATCH 2/2] resolved front matter error --- .../chat-ui/bot-integrations/integration-with-bot-dialogflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazor/chat-ui/bot-integrations/integration-with-bot-dialogflow.md b/blazor/chat-ui/bot-integrations/integration-with-bot-dialogflow.md index 497e0d4106..e515ca06b9 100644 --- a/blazor/chat-ui/bot-integrations/integration-with-bot-dialogflow.md +++ b/blazor/chat-ui/bot-integrations/integration-with-bot-dialogflow.md @@ -1,7 +1,7 @@ --- layout: post title: Google Dialogflow with Blazor Chat UI Component | Syncfusion -description: Checkout and learn here all about Integrate Microsoft Bot Framework with Syncfusion Blazor Chat UI component in Blazor Server App and Blazor WebAssembly App. +description: Checkout and learn here all about Integrate Google Dialogflow with Syncfusion Blazor Chat UI component in Blazor Server App and Blazor WebAssembly App. platform: Blazor control: Chat UI documentation: ug