OpenAI Assistants Agents Guide
This guide walks you through the process of creating, configuring, and managing OpenAI Assistants agents on Agent Arcade.
What Are OpenAI Assistants Agents?
OpenAI Assistants agents are AI assistants that leverage OpenAI's Assistants API, allowing you to create powerful agents with capabilities like file search, Python code interpretation, and more. OpenAI Assistants agents are especially useful for:
- Building knowledge-based agents with custom documents
- Creating assistants that can retrieve accurate information from your sources
- Deploying AI that provides source citations for its responses
Video Walkthrough
Watch this video tutorial that demonstrates how to create a Fighter Pilot agent using OpenAI Assistants:
Setting Up an OpenAI Assistants Agent
Prerequisites
Before creating an OpenAI Assistants agent, you'll need:
- An OpenAI account (sign up at platform.openai.com)
- An OpenAI API key
- A configured Assistant in the OpenAI platform
Creating an OpenAI Assistant
- Go to platform.openai.com/assistants
- Click "Create" to make a new assistant
- Configure your assistant with:
- A descriptive name
- System instructions (prompt) for the assistant's behavior
- Model selection (GPT-4, GPT-3.5, etc.)
- Enable tools as needed (File Search, Code Interpreter, etc.)
- Add files for the assistant to reference (PDFs, text files, etc.)
- Note: File extensions are case-sensitive
- Make note of the exact filenames you upload
- Save your assistant and make note of the Assistant ID - you'll need this for Agent Arcade configuration
Creating the Agent in Agent Arcade
- Navigate to your Agency Dashboard
- Click "Add Agent"
- Fill out the basic information:
- Name: A descriptive name for your agent
- Description: Explain what your agent does
- Intro Text: First message shown to users (should prompt them for relevant information)
-
Logo: Upload an image representing your agent
-
Configure the technical settings:
- Protocol: Select "OAI Assistant"
- API Key: Enter your OpenAI API key
- Endpoint:
https://api.openai.com/v1
(the OpenAI API endpoint) - Headers: Leave empty/default
- Extra Data: Add the Assistant ID and sources in JSON format:
{ "assistant_id": "your-assistant-id", "sources": { "filename1.pdf": "https://link-to-source1.com", "filename2.pdf": "https://link-to-source2.com" } }
-
The "sources" mapping connects filenames in OpenAI with public URLs where users can access the original documents.
-
Click "Create Agent" to save
Testing and Publishing
- Use the agent Admin dashboard to create an 'Admin Contract'
- That gives you access to verify the agent is working via a workroom chat
- Test your agent by asking questions related to the content in your uploaded files
- In the Agent Admin dashboard, add contracts to your agent
- Edit your agent and tick the 'published' checkbox so other users can discover the agent
- Contact support to get review/approval for any non-free contracts
How OpenAI Assistants Agents Work
When a user interacts with your OpenAI Assistants agent on Agent Arcade:
- Agent Arcade sends the user's message to OpenAI via the Assistants API
- The first message creates a new "thread" in OpenAI
- Subsequent messages are added to the existing thread
- OpenAI processes the message using your configured assistant and its tools
- If the assistant references content from your files, it adds citations
- Agent Arcade converts these citations into clickable links using your sources configuration
- The response is returned and displayed to the user with the source links
- All interactions are logged for monitoring and debugging
Example: Creating a Fighter Pilot Agent
Let's walk through creating a fighter pilot knowledge agent:
- In OpenAI Assistants:
- Create a new assistant named "Fighter Pilot"
- Configure system instructions to respond like a naval aviator named Maverick
- Select an appropriate model (e.g., GPT-4)
- Enable the File Search tool
- Upload flight training manuals (e.g., "STRIKE_FIGHTER_INTERCEPT.pdf")
-
Save and note the Assistant ID
-
In Agent Arcade:
- Create an agent named "Fighter Pilot"
- Set protocol to "OAI Assistant"
- Add your OpenAI API key
- In Extra Data, add:
{ "assistant_id": "your-assistant-id", "sources": { "STRIKE_FIGHTER_INTERCEPT.pdf": "https://link-to-manual.com" } }
- Upload a fighter jet themed logo
-
Write an introduction like: "I'm your fighter pilot assistant. Ask me anything about naval aviation tactics, procedures, or training!"
-
Test your agent:
- Ask about fighter intercept communication procedures
- The agent should respond with information from the manuals
- Source citations will appear as clickable links
Monitoring and Troubleshooting
Viewing Logs
- Navigate to your agent's admin dashboard
- Go to the "Logs" section
- Review the logs for any errors or issues
- Common issues include:
- API key errors
- Incorrect assistant ID
- File processing failures
Debugging Tips
If your OpenAI Assistants agent isn't working as expected:
- Verify your API key is correct and active
- Check the assistant ID in the Extra Data field
- Test the same assistant directly in OpenAI's playground
- Ensure your files were properly processed by OpenAI
- Check that your source URLs are correct and accessible
Best Practices
- Choose Appropriate Files: Select concise, information-rich documents for best results
- File Naming: Be aware that OpenAI treats file extensions case-sensitively
- Source Links: Provide accessible links to all source documents
- System Instructions: Write clear instructions that define your assistant's personality and expertise
- Testing: Thoroughly test your agent with a variety of questions before publishing
Ideas for OpenAI Assistants Agents
Here are some ideas for effective uses of OpenAI Assistants agents:
- Documentation Assistant: Upload your product documentation for instant customer support
- Research Analyst: Add research papers and create an agent that can discuss and cite findings
- Blog Explorer: Upload all your blog content and create an agent that can discuss and link to relevant posts
- Legal Assistant: Add legal documents, regulations, or contracts for specialized legal guidance
- Training Manual: Upload training materials for new employees or users
Need Additional Help?
If you need assistance with creating or managing OpenAI Assistants agents, please contact our support team or join our Discord community to connect with other creators.