Skip to main content

AI Configuration

The General section controls the "brain" of your chatbot—the AI model it uses, its core personality, and its fundamental parameters.

Engine and Model

This is where you select the AI engine and the specific model that will power your chatbot.

  • Engine: Choose the AI provider you want to use for this chatbot (e.g., OpenAI, Google, Azure). This can be different from the global default you set in the main Dashboard.
  • Model: Select the specific AI model. The options here depend on the Engine you selected and the models you have synced from your provider's account.

Instructions

This field defines your chatbot's personality and purpose. It's a set of instructions that guides the AI's behavior in every conversation. A good instruction prompt is clear and direct.

Example:

You are a friendly and helpful customer support agent for a company named "AIP." Your goal is to answer questions about our products and help users troubleshoot common issues. Be polite and concise in your responses.

You can use the placeholder [date] to automatically insert the current date into the prompt each time a conversation starts.

Stream Mode

When enabled, the chatbot's response appears word-by-word, similar to how ChatGPT types.

This provides a faster perceived response time for the user. When disabled, the chatbot will "think" and then deliver the entire message at once.

AI Parameters

Click the icon next to the model selection to reveal the advanced AI parameters. These settings fine-tune how the AI generates its responses.

  • Temperature: Controls the creativity of the AI. A higher value (e.g., 1.2) results in more creative and varied responses. A lower value (e.g., 0.5) makes the responses more focused and predictable. The default is 1.0.
  • Max Tokens: Sets the maximum length of the AI's response. A higher number allows for longer content but can increase API costs.
  • Max Messages: The number of previous messages from the current conversation to include as context for the AI. A higher number provides more context but uses more tokens.

Stateful Conversation

This feature uses OpenAI's stateful conversation capabilities and it is only available when using OpenAI as the provider.

Instead of sending the entire chat history with each message, it only sends the previous message ID.

This reduces token usage and enables continuous conversations that can exceed normal token limits.

The "Store Conversation" setting must be enabled in the main AIP > Dashboard > OpenAI settings.

This feature allows the chatbot to access external information to answer questions about recent events or topics outside its training data. The specific settings change depending on whether you are using an OpenAI or Google model.

When using an OpenAI model, enabling the Web Search tool reveals two additional settings in the General tab:

  • Search Context Size: Controls how much information the AI considers from its search results. It has three levels: Low, Medium (default), and High.
  • User Location: Helps the AI provide more relevant local results.
    • None: The AI does not consider the user's location.
    • Approximate: When selected, you can provide location details to narrow down search results.
  • Country (ISO Code): A two-letter country code (e.g., US for United States).
  • City: The name of a city (e.g., London).
  • Region/State: The name of a state or region (e.g., California).
  • Timezone (IANA): The standard timezone name (e.g., America/Chicago).

Google Search Grounding

When using a compatible Google model, enabling web search adds grounding capabilities.

The following settings will appear:

  • Grounding Mode:
    • Model Decides (Default): The AI determines when to use search as a tool to answer a query.
    • Dynamic Retrieval (Gemini 1.5 Flash only): The model dynamically grounds its response in search results based on a relevance score.
  • Dynamic Retrieval Threshold: This slider (from 0.0 to 1.0) appears when "Dynamic Retrieval" is selected. It sets the relevance threshold for including search results. A higher value requires a stronger match between the user's query and the search results.

Using Web Search in the Chat

Once you have enabled Web Search in the settings, a new icon will appear in the chat input field.

This icon acts as a toggle. By default, it is off (gray). To use the web search feature, the user must click this icon before sending their message. When clicked, the icon will turn blue, indicating that web search is active for the next query.

For example, if a user enables the toggle and asks, "What is the price of Bitcoin today?", the AI will use web search to find the current information. The toggle resets after each message, so it must be clicked again for subsequent web search queries.