From Bright Pattern Documentation
Jump to: navigation, search
Updated via BpClonePage extension. Source page: draft:Contact-center-administrator-guide/CallCenterConfiguration/IntegrationAccounts/AIProvider
Updated via BpClonePage extension. Source page: draft:Contact-center-administrator-guide/CallCenterConfiguration/IntegrationAccounts/AIProvider
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:


{{Note|Learn how to add an AI integration account and use the [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent|AI Agent scenario block]] in your scenarios with the [[Tutorials-for-admins/AI/HowtoUseAIAgentinScenarios|AI Agent tutorial]]}}
{{Note|Learn how to add an AI integration account and use the [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent|AI Agent scenario block]] in your scenarios with the [[Tutorials-for-admins/AI/HowtoUseAIAgentinScenarios|AI Agent tutorial]]}}
== Common Properties ==
The following properties are available for all AI provider integration accounts.
=== Name ===
The unique name of this integration account, used to identify it elsewhere in the system. Because you can have multiple integration accounts of the same type, it is recommended to use a descriptive name.
=== Type ===
Read-only property indicating the type of integration account, e.g. ''OpenAI'' or ''Google Vertex''.
=== Structured Output ===
When you enable ''force structured output format for AI Agent and Ask AI blocks using this account'', the system provides the AI model with a specific schema definition based on the configuration of [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent#Requested_Outcomes|Requested Outcomes]] (AI Agent) or the [[Scenario-builder-reference-guide/ScenarioBlocks/AskAI#Data_to_extract|Data to extract]] (Ask AI). This ensures that the AI response is valid JSON and strictly matches the expected format, improving reliability by preventing unparsable or non-standard responses.
'''Note''': This requires a model that supports structured output. If you enable this option, use the '''Test Connection''' button to verify that your selected model supports this feature.
=== Advanced Options ===
Use the ''Advanced Options'' property to enter a JSON-formatted object to configure API parameters that are not explicitly provided in the standard integration settings. This allows you to access specific model capabilities (e.g., "thinking" modes, reasoning_effort), adjust token limits (e.g., max_completion_tokens), or modify other API parameters without waiting for changes to the integration. To modify this property, you must have the [[Contact-center-administrator-guide/UsersandTeams/Privileges#Service_and_Campaign_Administration|Configure system-wide settings privilege]].
Always use the '''Test Connection''' button to verify that the configuration provided in ''Advanced Options'' is valid.
Take note of the following regarding validation and usage:
* Certain settings, especially those that enable "thinking modes" or increase the "thinking budget" or "max tokens", can significantly impact the cost of model usage. Make sure you understand the implications before changing the advanced options.
* Settings defined here apply globally wherever this integration account is used (e.g., AI Agent blocks, Intelligence Engine).
* The input must be a valid JSON object (e.g., <code>{"temperature": 0.5, "top_p": 0.9}</code>).
* The system validates JSON syntax and restricted keys. It does not verify if the parameters are semantically correct or supported by your specific AI provider and model. You are responsible for ensuring the options are valid for the selected model.
* The following options are system-managed and cannot be set via Advanced Options. Validation will fail if any of these are included in ''Advanced Options'': <code>model</code>, <code>response_format</code>, <code>responseMimeType </code>, <code>responseSchema </code>, or <code>tools</code>.
* Explicitly remove a parameter from the API request payload by setting it to <code>null</code> (e.g., <code>"max_tokens": null</code>).
* Order of application of options:
*# Block Settings: Parameters explicitly defined in a scenario block (specifically Temperature) take the highest precedence.
*# Advanced Options: Valid options defined here override the system's hardcoded defaults.
*# Integration value: If a parameter is not defined in the block or in ''Advanced Options'', the value defined by the integration is used.
* Provider specifics:
** OpenAI, Anthropic, Custom: Options are merged into the top-level JSON request payload.
** Google Vertex AI: Options are treated as part of the <code>generationConfig</code> sub-JSON.
==== Advanced Option Examples ====
The following examples demonstrate common use cases for modifying the ''Advanced Options'' configuration. However, '''these examples ''will not work'' for every model'''. Consult the API documentation for the specific model and AI provider before configuring the ''Advanced Options''.
; Removing and Adjusting Model Parameters
: If a model deprecates <code>max_tokens</code> in favor of <code>max_completion_tokens</code> and requires a fixed temperature, you can configure the account to nullify the old parameter and set the new requirements.
: <syntaxhighlight lang="json">
  "max_tokens": null,
  "max_completion_tokens": 1000,
  "temperature": 1
}
</syntaxhighlight>
; Disabling Vertex AI Thinking
: For Google Vertex models (e.g., Gemini-2.5-flash) that enable "thinking" by default, you can disable the feature to manage costs or latency by setting the budget to zero.
: <syntaxhighlight lang="json">
{
  "thinkingConfig": {
    "thinkingBudget": 0
  }
}
</syntaxhighlight>
; Increasing Token Limits
: If the initial [[Interaction-analytics/Discovery-quickstart|Discovery]] fails because the default token limit (e.g., 1000) is too low for a model, you can increase the limit.
: <syntaxhighlight lang="json">
{
  "max_tokens": 8096
}
</syntaxhighlight>
=== Test Connection ===
Click to verify that Bright Pattern Contact Center can connect to the AI provider account using the credentials.


== OpenAI Properties ==
== OpenAI Properties ==
After adding an OpenAI account, the properties dialog will appear. Enter the API key for your OpenAI account and click the '''Read Models''' button to retrieve the list of GPT models that can be accessed from your account. Once configured, the account can be selected as an ''AI Provider'' in an AI Agent scenario block.
After adding an OpenAI account, the properties dialog will appear. Enter the API key for your OpenAI account and click the '''Read Models''' button to retrieve the list of GPT models that can be accessed from your account. Once configured, the account can be selected as an ''AI Provider'' in an AI Agent scenario block.
[[File:OpenAI integration account.png|center|thumb|481x481px|OpenAI integration account properties]]


=== Name ===
The unique name of this integration account. Because you can have multiple integration accounts of the same type, it is recommended to use a descriptive name.


=== Type ===
[[File:OpenAI integration account-535.png|center|thumb|530x530px|OpenAI integration account properties]]
Automatically set as ''AI Providers (OpenAI)''.
 


=== API Key ===
=== API Key ===
Line 33: Line 113:
Click this button to refresh the list of GPT models available to your OpenAI account.
Click this button to refresh the list of GPT models available to your OpenAI account.


=== Test Connection ===
Click to verify that Bright Pattern Contact Center can connect to your OpenAI account using the provided API key.


== Google Vertex AI Properties ==
== Google Vertex AI Properties ==
After adding a Google Vertex AI account, the properties dialog will appear. In Properties, you will upload the JSON-formatted key file for the service account, select the desired region, and choose the model. Once configured, the account can be selected as an ''AI Provider'' in an AI Agent scenario block. Note that [[Faq/VertexAI#How_do_I_Activate_Vertex_AI_for_a_Project.3F|Vertex AI must be enabled]] for the Google Cloud Platform project associated with the service account used for the integration.  
After adding a Google Vertex AI account, the properties dialog will appear. In Properties, upload the JSON-formatted key file for the service account, select the desired region, and choose the model. Once configured, the account can be selected as an ''AI Provider'' in an AI Agent scenario block. Note that [[Faq/VertexAI#How_do_I_Activate_Vertex_AI_for_a_Project.3F|Vertex AI must be enabled]] for the Google Cloud Platform project associated with the service account used for the integration.  
[[File:Google Vertex AI Integration Account.png|center|thumb|546x546px|Google Vertex AI integration account properties]]
 
=== Name ===
 
The unique name of this integration account. Because you can have multiple integration accounts of the same type, it is recommended to use a descriptive name.
[[File:Google Vertex AI Integration Account-535.png|center|thumb|530x530px|Google Vertex AI integration account properties]]


=== Type ===
Automatically set as ''AI Providers (Google Vertex AI)''.


=== Region ===
=== Region ===
Line 53: Line 129:
=== Model ===
=== Model ===
Select the desired Vertex AI model that will be provided by this integration account. Refer to the [https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models Google models documentation] for information about model capabilities and pricing.  
Select the desired Vertex AI model that will be provided by this integration account. Refer to the [https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models Google models documentation] for information about model capabilities and pricing.  
=== Test Connection ===
 
Click to verify that Bright Pattern Contact Center can connect to your Google Vertex AI account using the provided credentials and region.


== Anthropic Claude AI Properties ==
== Anthropic Claude AI Properties ==
After adding an ''Anthropic Claude AI'' account, the properties dialog will appear. Enter the API key for your [https://console.anthropic.com/ Anthropic developer account] and click the '''Read Models''' button to retrieve the list of Claude models that can be accessed from your account. Once configured, the account can be selected as an ''AI Provider'' for relevant features, such as the [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent|AI Agent]] and [[Scenario-builder-reference-guide/ScenarioBlocks/AskAI|Ask AI]] scenario blocks.
After adding an ''Anthropic Claude AI'' account, the properties dialog will appear. Enter the API key for your [https://console.anthropic.com/ Anthropic developer account] and click the '''Read Models''' button to retrieve the list of Claude models that can be accessed from your account. Once configured, the account can be selected as an ''AI Provider'' for relevant features, such as the [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent|AI Agent]] and [[Scenario-builder-reference-guide/ScenarioBlocks/AskAI|Ask AI]] scenario blocks.
[[File:Anthropic Claude AI integration account settings.png|center|thumb|526x526px|Anthropic Claude AI integration account properties]]


=== Name ===
The unique name of this integration account. Because you can have multiple integration accounts of the same type, it is recommended to use a descriptive name.


=== Type ===
[[File:Anthropic Claude AI integration account settings-535.png|center|thumb|530x530px|Anthropic Claude AI integration account properties]]
Automatically set as ''AI Providers (Anthropic Claude AI)''.


=== API Key ===
=== API Key ===
Line 75: Line 146:
Click this button to refresh the list of Claude models available to your Anthropic account.
Click this button to refresh the list of Claude models available to your Anthropic account.


=== Test Connection ===
Click to verify that Bright Pattern Contact Center can connect to your Anthropic account using the provided API key.


== Custom AI Gateway Properties ==
== Custom AI Gateway Properties ==
After adding a Custom AI Gateway account, the properties dialog will appear. This account type allows you to integrate with any AI provider that offers an API method compatible with the [https://platform.openai.com/docs/api-reference/chat/create OpenAI Chat Completions API endpoint]. Once configured, the account can be selected as an ''AI Provider'' for relevant features, such as the [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent|AI Agent]] and [[Scenario-builder-reference-guide/ScenarioBlocks/AskAI|Ask AI]] scenario blocks.
After adding a Custom AI Gateway account, the properties dialog will appear. This account type allows you to integrate with any AI provider that offers an API method compatible with the [https://platform.openai.com/docs/api-reference/chat/create OpenAI Chat Completions API endpoint]. Once configured, the account can be selected as an ''AI Provider'' for relevant features, such as the [[Scenario-builder-reference-guide/ScenarioBlocks/AIAgent|AI Agent]] and [[Scenario-builder-reference-guide/ScenarioBlocks/AskAI|Ask AI]] scenario blocks.
[[File:Custom AI Gateway integration account settings.png|center|thumb|530x530px|Custom gateway settings]]


=== Name ===
The unique name of this integration account. Because you can have multiple integration accounts of the same type, it is recommended to use a descriptive name.


=== Type ===
[[File:Custom AI Gateway integration account settings-535.png|center|thumb|530x530px|Custom gateway settings]]
Automatically set as ''AI Providers (Custom AI Gateway)''.
 


=== URL ===
=== URL ===
Line 97: Line 163:
Enter the exact Model ID that this integration account will provide (e.g., <code>llama3-70b-8192</code>). This value is defined by your AI provider.
Enter the exact Model ID that this integration account will provide (e.g., <code>llama3-70b-8192</code>). This value is defined by your AI provider.


=== Test Connection ===
Click to verify that Bright Pattern Contact Center can connect to the specified URL using the provided API key and model.


== Recommended Reading ==
== Recommended Reading ==

Latest revision as of 01:29, 26 February 2026

AI Provider Integration

AI Provider integrations allow you to take advantage of language models from third-party AI providers in voice and chat scenarios. These models allow the AI Agent scenario block to hold purposeful conversations with customers and extract relevant data to scenario variables, which can then be used for further automation.

Each AI Provider offers a number of language models with varying capabilities. The following AI Providers are supported:


Learn how to add an AI integration account and use the AI Agent scenario block in your scenarios with the AI Agent tutorial


Common Properties

The following properties are available for all AI provider integration accounts.

Name

The unique name of this integration account, used to identify it elsewhere in the system. Because you can have multiple integration accounts of the same type, it is recommended to use a descriptive name.

Type

Read-only property indicating the type of integration account, e.g. OpenAI or Google Vertex.

Structured Output

When you enable force structured output format for AI Agent and Ask AI blocks using this account, the system provides the AI model with a specific schema definition based on the configuration of Requested Outcomes (AI Agent) or the Data to extract (Ask AI). This ensures that the AI response is valid JSON and strictly matches the expected format, improving reliability by preventing unparsable or non-standard responses.

Note: This requires a model that supports structured output. If you enable this option, use the Test Connection button to verify that your selected model supports this feature.

Advanced Options

Use the Advanced Options property to enter a JSON-formatted object to configure API parameters that are not explicitly provided in the standard integration settings. This allows you to access specific model capabilities (e.g., "thinking" modes, reasoning_effort), adjust token limits (e.g., max_completion_tokens), or modify other API parameters without waiting for changes to the integration. To modify this property, you must have the Configure system-wide settings privilege.

Always use the Test Connection button to verify that the configuration provided in Advanced Options is valid.

Take note of the following regarding validation and usage:

  • Certain settings, especially those that enable "thinking modes" or increase the "thinking budget" or "max tokens", can significantly impact the cost of model usage. Make sure you understand the implications before changing the advanced options.
  • Settings defined here apply globally wherever this integration account is used (e.g., AI Agent blocks, Intelligence Engine).
  • The input must be a valid JSON object (e.g., {"temperature": 0.5, "top_p": 0.9}).
  • The system validates JSON syntax and restricted keys. It does not verify if the parameters are semantically correct or supported by your specific AI provider and model. You are responsible for ensuring the options are valid for the selected model.
  • The following options are system-managed and cannot be set via Advanced Options. Validation will fail if any of these are included in Advanced Options: model, response_format, responseMimeType , responseSchema , or tools.
  • Explicitly remove a parameter from the API request payload by setting it to null (e.g., "max_tokens": null).
  • Order of application of options:
    1. Block Settings: Parameters explicitly defined in a scenario block (specifically Temperature) take the highest precedence.
    2. Advanced Options: Valid options defined here override the system's hardcoded defaults.
    3. Integration value: If a parameter is not defined in the block or in Advanced Options, the value defined by the integration is used.
  • Provider specifics:
    • OpenAI, Anthropic, Custom: Options are merged into the top-level JSON request payload.
    • Google Vertex AI: Options are treated as part of the generationConfig sub-JSON.

Advanced Option Examples

The following examples demonstrate common use cases for modifying the Advanced Options configuration. However, these examples will not work for every model. Consult the API documentation for the specific model and AI provider before configuring the Advanced Options.

Removing and Adjusting Model Parameters
If a model deprecates max_tokens in favor of max_completion_tokens and requires a fixed temperature, you can configure the account to nullify the old parameter and set the new requirements.
{  
  "max_tokens": null,
  "max_completion_tokens": 1000,
  "temperature": 1
}
Disabling Vertex AI Thinking
For Google Vertex models (e.g., Gemini-2.5-flash) that enable "thinking" by default, you can disable the feature to manage costs or latency by setting the budget to zero.
{
  "thinkingConfig": {
    "thinkingBudget": 0
  }
}
Increasing Token Limits
If the initial Discovery fails because the default token limit (e.g., 1000) is too low for a model, you can increase the limit.
{
  "max_tokens": 8096
}

Test Connection

Click to verify that Bright Pattern Contact Center can connect to the AI provider account using the credentials.


OpenAI Properties

After adding an OpenAI account, the properties dialog will appear. Enter the API key for your OpenAI account and click the Read Models button to retrieve the list of GPT models that can be accessed from your account. Once configured, the account can be selected as an AI Provider in an AI Agent scenario block.


OpenAI integration account properties


API Key

The OpenAI API key to use with this integration account. The API keys page of your OpenAI account allows you to generate API keys.

GPT Model

Select the GPT model that this integration account will provide. If the list is empty, click the Read Models button to retrieve the list of models. Refer to the OpenAI models documentation for information about model capabilities and pricing.

Read Models

Click this button to refresh the list of GPT models available to your OpenAI account.


Google Vertex AI Properties

After adding a Google Vertex AI account, the properties dialog will appear. In Properties, upload the JSON-formatted key file for the service account, select the desired region, and choose the model. Once configured, the account can be selected as an AI Provider in an AI Agent scenario block. Note that Vertex AI must be enabled for the Google Cloud Platform project associated with the service account used for the integration.


Google Vertex AI integration account properties


Region

Select the Google Cloud region for your Vertex AI instance from the dropdown list. The list is automatically populated with available regions.

Credentials JSON

Upload the JSON-formatted key file for the Google Cloud service account that will provide the model. Refer to the Vertex AI FAQ article for more information on how to retrieve your credentials.

Model

Select the desired Vertex AI model that will be provided by this integration account. Refer to the Google models documentation for information about model capabilities and pricing.


Anthropic Claude AI Properties

After adding an Anthropic Claude AI account, the properties dialog will appear. Enter the API key for your Anthropic developer account and click the Read Models button to retrieve the list of Claude models that can be accessed from your account. Once configured, the account can be selected as an AI Provider for relevant features, such as the AI Agent and Ask AI scenario blocks.


Anthropic Claude AI integration account properties

API Key

The Anthropic API key to use with this integration account. You can create and manage API keys from your Anthropic account console.

Model

Select the Claude model that this integration account will provide. If the list is empty, click the Read Models button to retrieve the list of models. Refer to the Anthropic models documentation for information about model capabilities and pricing.

Read Models

Click this button to refresh the list of Claude models available to your Anthropic account.


Custom AI Gateway Properties

After adding a Custom AI Gateway account, the properties dialog will appear. This account type allows you to integrate with any AI provider that offers an API method compatible with the OpenAI Chat Completions API endpoint. Once configured, the account can be selected as an AI Provider for relevant features, such as the AI Agent and Ask AI scenario blocks.


Custom gateway settings


URL

The full path to the custom AI provider's API endpoint for chat completions (e.g., https://api.example.com/v1/chat/completions). The endpoint must conform to the OpenAI Chat Completions API specification. If the protocol (http:// or https://) is omitted, https:// is assumed.

API Key

The API key to use with the custom AI provider.

Model

Enter the exact Model ID that this integration account will provide (e.g., llama3-70b-8192). This value is defined by your AI provider.


Recommended Reading

For more information on using AI integrations, refer to the following: