Configure API Tool
Configure API Tool
How It Works
1.
2.
3.
4.
How to Write a Prompt for API Requests
Must-Have Elements:
1.
Optional but Recommended Elements:
1.
2.
3.
Example: Clinical Trials API
Configuring the API Tool
1. Go to the Tools section from the sidebar

2. Click on Add Tool

3. Type a name for your tool in the configure tool drawer

4. Select API from the Tool Type dropdown

5. Add the description for the tool here

6. Select "Other" Under API Selection

7. Add the system prompt here

8. Click on Create tool

9. The new API Tool has been created.

10. Click on Authorization in the Configure Tool Drawer

11. Add the Authorizatio Key Here i.e "Ocp-Apim-Subscription-Key"

12. Add the value for the key in authorization header

13. Click on Update tool

Enabling the API Tool for Assistant
1. Navigate to the assistants section from the sidebar

2. Search for your assistant from the list

3. Make sure "Advanced Reasoning" is turned on in the assistant drawer

4. Click on the three dots on your assistant from the list

5. Go to Tools from the dropdown

6. Search for the newly created tool here

7. Enable the tool for this assistant

8. Navigate back to your assistant and click on it to open the assistant drawer

9. Notice the API Tool being enabled for the assistant here

Best Practices for Writing System Prompts
1.
2.
3.
4.
5.