# Generate AI Response

Generates AI responses using OpenAI models with optional web search capabilities

Generates AI responses using OpenAI models with configurable prompts and optional web search to provide contextual information for user queries.

## Configuration Options

In the tool configuration, you can set:

- **Model** - OpenAI model to use (GPT 5, GPT 5 mini, or GPT 5 nano)
- **Prompt** - Custom prompt template for the AI response
- **Allow Web Search** - Whether to include web search results (true/false)
- **Allowed Web Search Domains** - Optional domains to restrict web search results to

The agent supplies the conversation context when it calls the tool.

Source: https://www.tryrisotto.com/docs/integrations/tools/openai/generate_response
