Repository Public
1# Production notes on GPT Actions23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45## Rate limits67Consider implementing rate limiting on the API endpoints you expose. ChatGPT will respect 429 response codes and dynamically back off from sending requests to your action after receiving a certain number of 429's or 500's in a short period of time.89## Timeouts1011When making API calls during the actions experience, timeouts take place if the following thresholds are exceeded:1213- 45 seconds round trip for API calls1415## Use TLS and HTTPS1617All traffic to your action must use TLS 1.2 or later on port 443 with a valid public certificate.1819## IP egress ranges2021ChatGPT will call your action from one of the [published IP ranges](https://developers.openai.com/api/docs/guides/ip-addresses). You may wish to explicitly allowlist these IP addresses.2223## Multiple authentication schemas2425When defining an action, you can mix a single authentication type (OAuth or API key) along with endpoints that do not require authentication.2627You can learn more about action authentication on our [actions authentication page](https://developers.openai.com/api/docs/actions/authentication).2829## Open API specification limits3031Keep in mind the following limits in your OpenAPI specification, which are subject to change:3233- 300 characters max for each API endpoint description/summary field in API specification34- 700 characters max for each API parameter description field in API specification3536## Additional limitations3738There are a few limitations to be aware of when building with actions:3940- Custom headers are not supported41- With the exception of Google, Microsoft and Adobe OAuth domains, all domains used in an OAuth flow must be the same as the domain used for the primary endpoints42- Request and response payloads must be less than 100,000 characters each43- Requests timeout after 45 seconds44- Requests and responses can only contain text (no images or video)4546## Consequential flag4748In the OpenAPI specification, you can now set certain endpoints as "consequential" as shown below:4950```yaml51paths:52 /todo:53 get:54 operationId: getTODOs55 description: Fetches items in a TODO list from the API.56 security: []57 post:58 operationId: updateTODOs59 description: Mutates the TODO list.60 x-openai-isConsequential: true61```6263A good example of a consequential action is booking a hotel room and paying for it on behalf of a user.6465- If the `x-openai-isConsequential` field is `true`, ChatGPT treats the operation as "must always prompt the user for confirmation before running" and don't show an "always allow" button (both are features of GPTs designed to give builders and users more control over actions).66- If the `x-openai-isConsequential` field is `false`, ChatGPT shows the "always allow button".67- If the field isn't present, ChatGPT defaults all GET operations to `false` and all other operations to `true`6869## Best practices on feeding examples7071Here are some best practices to follow when writing your GPT instructions and descriptions in your schema, as well as when designing your API responses:72731. Your descriptions should not encourage the GPT to use the action when the user hasn't asked for your action's particular category of service.7475 _Bad example_:7677 > Whenever the user mentions any type of task, ask if they would like to use the TODO action to add something to their todo list.7879 _Good example_:8081 > The TODO list can add, remove and view the user's TODOs.82832. Your descriptions should not prescribe specific triggers for the GPT to use the action. ChatGPT is designed to use your action automatically when appropriate.8485 _Bad example_:8687 > When the user mentions a task, respond with "Would you like me to add this to your TODO list? Say 'yes' to continue."8889 _Good example_:9091 > [no instructions needed for this]92933. Action responses from an API should return raw data instead of natural language responses unless it's necessary. The GPT will provide its own natural language response using the returned data.9495 _Bad example_:9697 > I was able to find your todo list! You have 2 todos: get groceries and walk the dog. I can add more todos if you'd like!9899 _Good example_:100101 > \{ "todos": [ "get groceries", "walk the dog" ] }102103## How GPT Action data is used104105GPT Actions connect ChatGPT to external apps. If a user interacts with a GPT’s custom action, ChatGPT may send parts of their conversation to the action’s endpoint.106107If you have questions or run into additional limitations, you can join the discussion on the [OpenAI developer forum](https://community.openai.com).