ChatGPT with Caddey
Learn how to create a custom GPT in ChatGPT that integrates with Caddey.
This guide provides detailed instructions on creating a custom GPT in ChatGPT that integrates with Caddey, enabling your ChatGPT to query and execute app tools securely. This setup requires a ChatGPT Plus/Pro subscription and an active Caddey OAuth client.
Prerequisites
- ChatGPT Plus/Pro Subscription: Access to custom GPT features.
- Caddey account: A Caddey account to create an OAuth client and connect tools.
Step 1: Create a Caddey OAuth Client
Before integrating with ChatGPT, ensure you have an active OAuth client in Caddey:
- Log in to your Caddey account.
- Navigate to the Clients section in the dashboard.
- Click Add client to create a new OAuth client.
- Enter the required details (e.g., client name "ChatGPT Assistant" and description), choose Confidential as client type.
- Leave the Redirect URIs field empty for now - you'll get the exact callback URL from ChatGPT in the next steps.
- Save the client.
- Note the Client ID and Client Secret: Once the client is created, copy both the Client ID and Client Secret—both will be needed for OAuth authentication in ChatGPT.
Important: ChatGPT requires a client secret for OAuth authentication, so you must use a Confidential client type. Public clients will not work with ChatGPT's OAuth implementation.
Step 2: Access the Custom GPT Builder in ChatGPT
- Log in to your ChatGPT account.
- Navigate to Explore GPT's.
- Click the Create button to create a new GPT.
Step 3: Configure GPT Details
-
Title:
Enter a name for your custom GPT integration (e.g.,Caddey
). -
Description:
Provide a brief description such as:Bring your tools to ChatGPT
-
Customize
Provide instructions, conversation starters, and capabilities according to your needs.
Step 4: Create action
- Add an action: In the GPT builder, click Add Action to configure an external API call.
- Configure authentication:
- Method: OAuth
- Authorization URL:
https://auth.caddey.ai/realms/caddey/protocol/openid-connect/auth
- Token URL:
https://auth.caddey.ai/realms/caddey/protocol/openid-connect/token
- Client ID: Your Caddey OAuth Client ID
- Client Secret: Your Caddey OAuth Client Secret
- Scope:
openid profile email offline_access
- Import OpenAPI schema: Choose Import OpenAPI from a URL and enter:
https://api.caddey.ai/v3/api-docs/tools
- Verify endpoints: Ensure ChatGPT sees:
- GET
/tools/query
(lists available tools) - POST
/tools/{toolId}/execute
(executes a tool)
- GET
- Save the action to generate the callback URL.
- Find the Callback URL: Navigate back to your GPT's main Configure screen (not the action configuration). You should now see a "Callback URL" displayed on this screen. Copy this exact URL.
- Update your Caddey OAuth Client: Go back to your Caddey dashboard, edit the OAuth client you created in Step 1, and add the callback URL you just copied to the Redirect URIs field. Save the client.
Important: The callback URL only appears on your GPT's main Configure screen after you've saved the action with OAuth configuration. If you don't see it immediately, make sure you've saved the action and are looking at your GPT's main Configure screen, not the individual action settings.
Step 5: Test Your Integration
- Query Tools: Use the preview in the custom GPT builder to ask what tools are available. ChatGPT should respond with some of the tools in the toolboxes you assigned to your OAuth client.
- Execute a Tool: Now ask ChatGPT to use one of the available tools. If required for the tool, provide ChatGPT with relevant input.
Finalize and Deploy
Once all tests are successful, save your custom GPT integration. You can now talk to the Caddey GPT to use your tools.
Need assistance? Visit the Support Section.