You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/ai-assistview/ai-integrations/gemini-integration.md
+29-20Lines changed: 29 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,55 +7,61 @@ control: AI AssistView
7
7
documentation: ug
8
8
---
9
9
10
-
# Gemini AI With Blazor AI AssistView component
10
+
# Integrate Gemini AI With Blazor AI AssistView component
11
11
12
-
The Syncfusion AI AssistView supports integration with [Gemini](https://ai.google.dev/gemini-api/docs/quickstart), enabling advanced conversational AI features in applications.
12
+
The AI AssistView component integrates with Google’s [Gemini](https://ai.google.dev/gemini-api/docs/quickstart) API to deliver intelligent conversational interfaces. It leverages advanced natural language understanding to interpret user input, maintain context throughout interactions, and provide accurate, relevant responses. By configuring secure authentication and data handling, developers can unlock powerful AI-driven communication features that elevate user engagement and streamline support experiences.
13
13
14
14
## Prerequisites
15
15
16
-
* Google account to generate an API key for accessing [Gemini AI](https://ai.google.dev/gemini-api/docs/quickstart)
17
-
* Syncfusion AI AssistView for Blazor package [Syncfusion.Blazor.InteractiveChat](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) installed in the project.
18
-
*[Markdig](https://www.nuget.org/packages/Markdig) package available in the project for Markdown-to-HTML conversion (required by the sample code).
16
+
Before starting, ensure you have the following:
19
17
20
-
## Getting Started with the AI AssistView Component
18
+
***Google Account**: For generating a Gemini API key.
21
19
22
-
Before integrating Gemini AI, ensure that the Syncfusion AI AssistView renders correctly in the application and that prerequisites are met:
20
+
***Syncfusion AI AssistView**: Package [Syncfusion Blazor package](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) installed.
23
21
24
-
[Blazor Getting Started Guide](../getting-started)
22
+
*[Markdig](https://www.nuget.org/packages/Markdig) package: For parsing Markdown responses.
23
+
24
+
## Set Up the AI AssistView Component
25
+
26
+
Follow the Syncfusion AI AssistView [Getting Started](../getting-started) guide to configure and render the AI AssistView component in the application and that prerequisites are met.
25
27
26
28
## Install Dependencies
27
29
28
-
Install the Syncfusion Blazor package in the application.
30
+
Install the required packages:
31
+
32
+
1. Install the `Gemini AI` nuget package in the application.
2.Install the `Markdig` nuget packages in the application.
37
41
38
42
```bash
39
43
40
-
Nuget\Install-Package Mscc.GenerativeAI
44
+
Nuget\Install-Package Markdig
41
45
42
46
```
43
47
44
48
## Generate API Key
45
49
46
-
1.Go to [Google AI Studio](https://aistudio.google.com/app/api-keys) and sign in with a google account. Create a new account if needed.
50
+
1.**Access Google AI Studio**: Instructs users to sign into [Google AI Studio](https://aistudio.google.com/app/apikey)with a Google account or create a new account if needed.
47
51
48
-
2.Select `Get API key` from the left menu or the top-right of the dashboard.
52
+
2.**Navigate to API Key Creation**: Go to the `Get API Key` option in the left-hand menu or top-right corner of the dashboard. Click the `Create API Key` button.
49
53
50
-
3.Choose `Create API key`. Select an existing google cloud project or create a new one, then proceed.
54
+
3.**Project Selection**: Choose an existing Google Cloud project or create a new one.
51
55
52
-
4.After creating or selecting a project, an API key is generated and displayed. Copy the key and store it securely, as it may be shown only once.
56
+
4.**API Key Generation**: After project selection, the API key is generated. Users are instructed to copy and store the key securely, as it is shown only once.
53
57
54
-
> Security note: Do not commit API keys to version control. Use environment variables, a secret manager, or a server-side proxy in production.
58
+
> Security note: Advises against committing the API key to version control and recommends using environment variablesor a secret manager in production.
55
59
56
60
## Gemini AI with AI AssistView
57
61
58
-
* Add the generated API key in the following line.
62
+
Modify the Razor file to integrate the Gemini AI with the AI AssistView component.
63
+
64
+
* update your Gemini API key securely in the configuration:
59
65
60
66
```bash
61
67
@@ -72,6 +78,7 @@ const string GeminiApiKey = 'Place your API key here';
Copy file name to clipboardExpand all lines: blazor/ai-assistview/ai-integrations/openai-integration.md
+34-21Lines changed: 34 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,57 +1,65 @@
1
1
---
2
2
layout: post
3
-
title: Azure Open AI with Blazor AI AssistView Component | Syncfusion
4
-
description: Checkout and learn about Azure Open AI with Blazor AI AssistView component in Blazor WebAssembly Application.
3
+
title: Azure OpenAI with Blazor AI AssistView Component | Syncfusion
4
+
description: Checkout and learn about Azure OpenAI with Blazor AI AssistView component in Blazor WebAssembly Application.
5
5
platform: Blazor
6
6
control: AI AssistView
7
7
documentation: ug
8
8
---
9
9
10
-
# Azure OpenAI With Blazor AI AssistView component
10
+
# Integrate Azure OpenAI with Blazor AI AssistView component
11
11
12
-
The Syncfusion AI AssistView supports integration with [Azure Open AI](https://microsoft.github.io/PartnerResources/skilling/ai-ml-academy/resources/openai), enabling advanced conversational AI features in your applications.
12
+
The AI AssistView component integrates with [Azure OpenAI](https://microsoft.github.io/PartnerResources/skilling/ai-ml-academy/resources/openai) to enable advanced conversational AI features in your applications. The component acts as a user interface, where user prompts are sent to the Azure OpenAI service via API calls, providing natural language understanding and context-aware responses.
13
13
14
14
## Prerequisites
15
15
16
-
- An Azure account with access to [Azure Open AI](https://microsoft.github.io/PartnerResources/skilling/ai-ml-academy/resources/openai) services and a generated API key.
17
-
- Syncfusion AI AssistView for Blazor [Syncfusion.Blazor.InteractiveChat](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) installed in the project
16
+
Before starting, ensure you have the following:
18
17
19
-
## Getting Started with the AI AssistView Component
18
+
***An Azure account**: with access to [Azure OpenAI](https://microsoft.github.io/PartnerResources/skilling/ai-ml-academy/resources/openai) services and a generated API key.
20
19
21
-
Before integrating Azure OpenAI, ensure the Syncfusion AI AssistView component renders correctly in the application:
20
+
***Syncfusion AI AssistView**: Package [Syncfusion Blazor package](https://www.nuget.org/packages/Syncfusion.Blazor.InteractiveChat) installed.
22
21
23
-
[Blazor Getting Started Guide](../getting-started)
22
+
*[Markdig](https://www.nuget.org/packages/Markdig) package available in the project for Markdown-to-HTML conversion (required by the sample code).
23
+
24
+
## Set Up the AI AssistView Component
25
+
26
+
Follow the Syncfusion AI AssistView [Getting Started](../getting-started) guide to configure and render the AI AssistView component in the application and that prerequisites are met.
24
27
25
28
## Install Dependencies
26
29
27
-
Install the Syncfusion Blazor package in the application.
30
+
Install the required packages:
31
+
32
+
1. Install the `OpenAI` and `Azure` nuget packages in the application.
0 commit comments