11# Creating a NL2SQL Agent on OCI
22
3+ Author: M. Gueury, A. Panda
4+
5+ Reviewed: 15.10.2025
6+
37** 1. Introduction**
48
59- ** Objective** : Step-by-step instructions for building and implementing
3236
3337- ** Prepare Tool Configuration Data**
3438
35- > User must keep the table DDLs handy before creating agent. Optionally,
36- > they can also prepare Table Column Descriptions, In Context Examples
37- > and Custom Instructions. These can be provided to inline to the Agent
38- > creation wizard. Alternately, these can be uploaded Object Storage
39- > Bucket and same be used in Agent creation wizard.
39+ User must keep the table DDLs handy before creating agent. Optionally,
40+ they can also prepare Table Column Descriptions, In Context Examples
41+ and Custom Instructions. These can be provided to inline to the Agent
42+ creation wizard. Alternately, these can be uploaded Object Storage
43+ Bucket and same be used in Agent creation wizard.
4044
4145- ** Policies**
4246
4650
4751 - Add Policies to allow above dynamic group to access resources** :**
4852
49- allow dynamic-group \< dg-name\> to read database-tools-family in
50- compartment \< compartment_name\>
51- allow dynamic-group \< dg-name\> to use database-tools-connections in
52- compartment \< compartment_name\>
53- allow dynamic-group \< dg-name\> to read secret-family in compartment
54- \< compartment_name\>
55- allow dynamic-group \< dg-name\> to read objects in tenancy
53+ ````
54+ allow dynamic-group \<dg-name\> to read database-tools-family in
55+ compartment \<compartment_name\>
56+ allow dynamic-group \<dg-name\> to use database-tools-connections in
57+ compartment \<compartment_name\>
58+ allow dynamic-group \<dg-name\> to read secret-family in compartment
59+ \<compartment_name\>
60+ allow dynamic-group \<dg-name\> to read objects in tenancy
61+ ````
5662
5763**3. Setting Up the OCI Environment**
5864
5965**3.1 Logging into OCI Console**
6066
61671. Navigate to the [OCI Console](https://www.oracle.com/cloud/).
6268
63- 2 . <img src="./media/image2.png"
64- style="width:6.34306in;height:3.30694in" /> Enter your credentials
65- and click ** Sign In** and open Generative AI Agents service.
69+ <img src="./media/image2.png" style="width:6.34306in;height:3.30694in" />
70+ 2. Enter your credential
71+ 3. Click **Sign In** and open Generative AI Agents service.
6672
6773**4. Creating an agent**
6874
@@ -78,9 +84,9 @@ allow dynamic-group \<dg-name\> to read objects in tenancy
7884 Message**. The **Description** field is optional.
7985
8086 2. Check the box to create endpoints for the agent.
81-
82- 3 . <img src="./media/image3.png"
83- style="width:6.94583in;height:3.29028in" /> You can also
87+
88+ <img src="./media/image3.png" style="width:6.94583in;height:3.29028in" />
89+ 3. You can also
8490 allow to add tags to organise this resource. For more info
8591 check
8692 [this](https://docs.oracle.com/en-us/iaas/Content/Tagging/Concepts/taggingoverview.htm).
@@ -161,9 +167,10 @@ allow dynamic-group \<dg-name\> to read objects in tenancy
161167 inline, or left blank (none).
162168 <img src="./media/image11.png" style="width:6.5in;height:2.02917in" />
163169
164- 3 . <img src="./media/image12.png"
165- style="width:6.91319in;height:3.10278in" />Click on next button,
166- review and create an agent.
170+ 3. Click on next button, review and create an agent.
171+
172+ <img src="./media/image12.png"
173+ style="width:6.91319in;height:3.10278in" />
167174
168175**4. Launch chat**
169176
0 commit comments