Skip to content

Commit 9d83f8f

Browse files
Update integration-with-dialogflow.md
1 parent b13d33f commit 9d83f8f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ej2-asp-core-mvc/chat-ui/EJ2_ASP.NETCORE/bot-integrations/integration-with-dialogflow.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Before integrating Dialogflow, ensure that the Syncfusion Chat UI component is c
1919

2020
## Prerequisites
2121

22-
* Google account to access `Dialogflow` and `Google Cloud Console`.
22+
* Google account to access [Google Dialogflow](https://cloud.google.com/dialogflow/docs) and [Google Cloud Console](https://console.cloud.google.com/).
2323
* .NET SDK (version 6.0 or higher) for ASP.NET Core.
2424
* Syncfusion EJ2 ASP.NET Core installed in your project.
2525
* Dialogflow Service Account with the Dialogflow API Client role and its JSON key file.
@@ -42,11 +42,11 @@ dotnet add package Syncfusion.EJ2.AspNet.Core
4242
```
4343
## Set Up the Dialogflow Agent
4444

45-
1. In the Dialogflow console, create an [agent](https://cloud.google.com/agent-assist/docs), set a name (e.g., `MyChatBot`), and configure the default language (e.g., English - `en`).
45+
1. In the dialogflow console, create an [agent](https://cloud.google.com/agent-assist/docs), set a name (e.g., `MyChatBot`), and configure the default language (e.g., English - `en`).
4646

47-
2. Add intents with training phrases and responses (e.g., greetings, FAQs). Test using the Dialogflow simulator.
47+
2. Add intents with training phrases and responses (e.g., greetings, FAQs). Test using the dialogflow simulator.
4848

49-
3. In the Google Cloud Console, go to `APIs & Services` > `Credentials`, create a Service Account with the Dialogflow API Client role, and download the JSON key file.
49+
3. In the Google Cloud Console, go to `APIs & Services` > `Credentials`, create a Service Account with the dialogflow API client role, and download the JSON key file.
5050

5151
> `Security Note`: Never commit the JSON key file to version control. Use environment variables or a secret manager (e.g., Google Cloud Secret Manager) for production.
5252
@@ -135,13 +135,13 @@ Use the Chat UI `messageSend` event to exchange messages. This event is triggere
135135

136136
### Forward Message to backend:
137137

138-
In the messageSend event handler, send a POST request to your backend API endpoint (`/api/chat/message`). The backend forwards the message to Dialogflow and returns the response.
138+
In the `messageSend` event handler, send a POST request to your backend API endpoint (`/api/chat/message`). The backend forwards the message to dialogflow and returns the response.
139139

140140
### Displaying Bot response:
141141

142142
Use the `addMessage` method to programmatically add the bot's reply to the Chat UI.
143143

144-
Create `Views/Home/Index.cshtml` (assuming MVC) to integrate the Syncfusion Chat UI with the Dialogflow backend:
144+
Create `Views/Home/Index.cshtml` to integrate the Syncfusion Chat UI with the dialogflow backend:
145145

146146
{% tabs %}
147147
{% highlight Html tabtitle="Index.cshtml" %}
@@ -202,9 +202,9 @@ dotnet run
202202

203203
```
204204

205-
Open your app and chat with your Dialogflow-powered bot.
205+
Open your app in the browser and chat with your dialogflow-powered bot.
206206

207-
![ChatUI with Dialogflow](../../images/dialogflow.png)
207+
![ChatUI with Dialogflow](../images/dialogflow.png)
208208

209209
## Troubleshooting:
210210

@@ -213,4 +213,4 @@ dotnet run
213213
* `No Response`: Test intents in the Dialogflow Console simulator to ensure they are configured correctly.
214214
* `Quota Exceeded`: Check Dialogflow API quotas in the Google Cloud Console.
215215
* `Network Issues`: Confirm the application is running and the API URL is correct.
216-
* `Invalid Credentials`: Verify the service account JSON or configuration settings are correctly set up.
216+
* `Invalid Credentials`: Verify the service account JSON or configuration settings are correctly set up.

0 commit comments

Comments
 (0)