Prerequisites
Before you add phone configurations, make sure you have:- Installed and configured the watsonx Orchestrate ADK.
- Created an agent in watsonx Orchestrate.
- Access credentials for phone service providers such as Genesys Cloud.
- Agent voice configuration set up for phone integration.
Creating phone configs
You can create phone configs directly using the ADK CLI or by importing a phone configuration file.- Importing from a file
- Using CLI
Create a phone config using a YAML, JSON, or Python file:
BASH
Note:
The import command creates a new phone config or updates an existing one based on the name. If a phone config with the same name exists, the command updates it using the new configuration.
Phone configuration file formats
Define phone configs using YAML, JSON, or Python formats (env variables supported).Note:
YAML and JSON files support one phone config per file. Python files support multiple phone config instances in one file. Phone configs are global resources, so any agent can attach to any phone config.
Listing phone configs
Listing supported phone configuration types
To list all currently supported phone configuration types, run the following command:BASH
Listing phone configs
To list all phone configs, run the following command:BASH
Getting phone config details
To retrieve details of a specific phone config, run the following command:BASH
Note:
Sensitive credential fields such as API keys, secrets, and client secrets appear as null or blank values in the output. This protects your credentials from accidental exposure.
Exporting phone configs
To export a phone config to a YAML file, run the following command:BASH
- Back up your phone config definitions
- Migrate phone configs between environments
- Track changes through version control
Note:
Sensitive credential fields such as API keys, secrets, and client secrets appear as null or blank values in the exported file. This protects your credentials from accidental exposure. You need to manually add these values when importing the phone config into a new environment.
Deleting phone configs
To delete a phone config, run the following command:BASH
Managing agent attachments
Phone configs are global resources that agents can attach to. Multiple agents and environments can share the same phone config.Attaching an agent to a phone config
To attach an agent/environment to a phone config, run the following command:BASH
Note:
The agent must have voice configuration set up for phone integration to work properly.
Detaching an agent from a phone config
To detach an agent/environment from a phone config, run the following command:BASH
Listing attachments for a phone config
To list all agent/environment attachments for a phone config, run the following command:BASH
Phone Configuration Types
Genesys Audio Connector
Connect your agent to Genesys Cloud using the Audio Connector integration.Prerequisites
- Genesys Cloud account
- Genesys Audio Connector integration created
- User-generated credentials:
- API Key (any string you choose)
- Client Secret (any string you choose, must be base-64 encoded)
Important: Both API Key and Client Secret are user-generated values (not obtained from Genesys Cloud). You create these values yourself. The same values must be configured in both:
- Your ADK phone configuration
- Your Genesys Audio Connector integration settings (go to the Credentials tab and add these values)
Creating a Genesys Audio Connector phone config
Use one of the following methods to define the phone config: Using CLI:BASH
Configuration requirements
| Field | Required | Format | Description |
|---|---|---|---|
security.api_key | Yes | String | User-generated API key |
security.client_secret | Yes | String (base-64 encoded) | User-generated client secret, base-64 encoded |
Understanding webhook configuration
When you attach an agent to a phone config, the ADK provides webhook configuration details. Your phone provider uses this information to connect calls to your agent.Viewing webhook configuration
The webhook configuration is displayed when you attach an agent to a phone config:BASH
Configuring Genesys Cloud
Use the webhook configuration values in your Genesys Audio Connector settings:- Log into your Genesys Cloud admin portal
- Enter the Audio Connect URI in the Base Connection URI field in
Genesys Cloud Admin / Integrations - Enter the Connector ID in the
Architect Inbound Call Flow / Audio Connector

