Type Definition
Properties
The user’s message or question to process. This is the main input that will be enriched with brand information.
The OpenAI model to use for generation. Available options:
"gpt-4"- Most capable model"gpt-4-turbo"- Faster GPT-4 variant"gpt-3.5-turbo"- Fastest, most cost-effective
Maximum number of tokens to generate in the response. This value may be overridden by brand-specific settings.Default: Determined by brand settings or API defaults.
Sampling temperature for response generation (0-2). Lower values make output more focused and deterministic, higher values make it more creative and random. This value may be overridden by brand-specific settings.Default: Determined by brand settings or API defaults.
Additional instructions to guide the AI response. Use this to customize tone, format, or specific requirements for the generated response.
Unique identifier to track conversation context across multiple requests. Use the same ID for follow-up messages in a conversation.
Array of previous messages in the conversation for context. Each message should have a
role (“user” or “assistant”) and content (string).Examples
Basic Request
Request with Model Selection
Request with Conversation Context
Request with Custom Instructions
Related Types
- AnswerResponse - Response structure returned by the API
- Targets - Target elements for DOM integration
