Deploy as ChatGPT
Quick Steps (TL;DR)
When to Use ChatGPT Deployment in SmythOS?
Deploying as ChatGPT allows you to connect your SmythOS agent with a custom GPT inside ChatGPT. By importing the OpenAPI schema generated by SmythOS, you can expose your agent's capabilities as actions that ChatGPT can call on demand.
This creates powerful use cases:
- Extend ChatGPT with your domain-specific logic
- Let users interact with your workflows via natural language
- Control agent behavior via secure, versioned APIs
Prerequisites
Before you start, you’ll need:
- A deployed SmythOS agent (Test or Production)
- Access to OpenAI GPT Builder (Pro or higher)
Step 1: Copy Your Agent's OpenAPI URL
Your Agent's OpenAPI schema is the bridge to ChatGPT. It's a JSON file that tells GPT Builder what your Agent can do.
- In your SmythOS dashboard, navigate to your Agent's Settings → Deployments.
- Under the Environment URLs section, copy the subdomain for your chosen environment.
https://[your-agent].agent.stage.smyth.ai
https://[your-agent].agent.pstage.smyth.ai
- Create the full OpenAPI URL by appending
/api-docs/openapi-llm.json
to the subdomain you copied.
https://[your-agent].agent.pstage.smyth.ai/api-docs/openapi-llm.json
Test vs. Production Environment
Step 2: Build Your Custom GPT
1. Open GPT Builder
Click here to open GPT Builder
2. Set Basic Configuration
Click the Configure tab.
3. Add Name, Instructions, and Welcome Message
Fill in:
- Name – the public-facing name of your GPT
- Instructions – paste your SmythOS agent behavior or prompt config
- Welcome message – what users see on launch
INFO
4. Add Your Agent as an Action
- Scroll to the Actions section
- Click Create new action
- Paste your OpenAPI URL (Test or Production):
Test Agent:
https://your-agent.agent.stage.smyth.ai/api-docs/openapi-llm.json
Production Agent:
https://your-agent.agent.pstage.smyth.ai/api-docs/openapi-llm.json
- Click Import to load the schema.
The GPT Builder will fetch your agent’s API definition and list available actions.
URL Format Note
6. Save and Test
- Click Create in the top right to save your GPT
- Interact with it like any other GPT, but now powered by your SmythOS agent
- Optionally, share the GPT with others via a public link
Success
Keeping Your GPT Synced
Live Sync with Test Mode
- Re-deploy your agent after edits
- Re-check your subdomain to ensure it’s unchanged
- Re-import the OpenAPI URL in GPT Builder to sync new logic
Reimport your OpenAPI URL after every significant agent update or version bump.
What’s Next?
Great! Your SmythOS agent is now live and available inside ChatGPT as a custom GPT.
- Build different GPTs using the same backend logic
- Route traffic by versioning your agent and updating GPT URLs
- Monitor usage from Settings → Deployments → Analytics in SmythOS
🔧 Troubleshooting Common Issues
Issue | Fix |
---|---|
401 Unauthorized | Double-check auth token format and value. |
Import fails | Visit the URL in a browser. If it redirects, use the final .json link. |
GPT doesn't see new endpoints | Re-import the OpenAPI file after making changes. |
('openapi',): Input should be '3.1.0' | Update the OpenAPI version from 3.0.1 to 3.1.0 in the schema. |