Assistant Not Found
Use this page when the Python SDK or Assistant API cannot find an assistant, app, team, or chat resource.
Symptoms
You may see:
404 Not FoundNotFoundErrorAssistant not foundApp not foundAgent team not found- A chat call fails after changing assistant or app IDs
Likely Causes
Common causes include:
- The assistant ID is incorrect.
- The app ID is incorrect.
- The assistant was created in a different environment.
- The API key belongs to a different account.
- The assistant or app was deleted.
- The deployed app was not created before calling chat.
How to Check
- Confirm the assistant ID or app ID in your code.
- Confirm you are using the API key for the same account.
- Confirm the assistant was created successfully.
- Confirm the app was deployed before calling chat.
- Restart the process if environment variables changed.
How to Fix
- Recreate or redeploy the assistant if needed.
- Use the returned assistant or app object instead of manually typing IDs.
- Confirm the API key and base URL point to the correct environment.
- Update stale IDs in your code or environment variables.
Example pattern:
assistant = create_assistant(...)
app = assistant.deploy(name="Support Assistant")
response = app.chat("Hello")