/scripts/config
endpoint returns the configuration for all integration functions. There are two variants of this endpoint:
/scripts/config?format=nango
- Returns the standard configuration format/scripts/config?format=openai
- Returns the configuration in OpenAI’s function calling format
OpenAI Function Format
The/scripts/config?format=openai
endpoint transforms the script configurations into OpenAI’s function calling format. This format is particularly useful when working with OpenAI’s API to enable function calling capabilities.
Parameter Descriptions
The endpoint automatically parses parameter descriptions from the script’s description field. If a script’s description contains a markdown list of parameters, these descriptions will be used for the corresponding parameters in the OpenAI function format. For example, in your script file, you can define a script like this:google-calendar/actions/move-event.ts
Array Fields
The endpoint properly handles array fields in the configuration. For example, if a field is defined as:google-calendar/actions/create-event.ts
Authorizations
The secret key from your Nango environment.
Query Parameters
The output type of the script configuration
Available options:
nango
, openai