Prerequisites
Before you establish channels, ensure that you have:- Installed and configured the watsonx Orchestrate ADK
- Created an agent in watsonx Orchestrate
- Access credentials for external services such as Twilio, Slack, and Genesys
Create channels
Create channels directly by using the ADK CLI or by importing a channel configuration file.- Importing from a file
- Using CLI
Create a channel by using a YAML, JSON, or Python file:
BASH
The import command creates a channel or updates an existing channel based on the name. If a channel with the same name exists, the command updates it by using the new configuration.
Channel configuration file formats
Define channels by using YAML, JSON, or Python formats. Environment variables are supported.YAML and JSON files support one channel specification per file. Python files support multiple channel instances in one file. You can define only one instance per channel type in each environment. For example, you can define both a Twilio WhatsApp channel and a Slack channel, but you cannot define two Twilio WhatsApp channels in the same environment.
List channels
List supported channel types
To list all supported channel types, run the following command:BASH
List channels for an agent
To list all channels that are configured for a specific agent and environment, run the following command:BASH
Get channel details
To retrieve details of a specific channel, run the following command:BASH
Sensitive credential fields such as authentication tokens, secrets, and passwords appear as null or blank values in the output. This behavior protects your credentials from accidental exposure.
Export channels
To export a channel configuration to a YAML file, run the following command:BASH
- Back up your channel definitions
- Migrate channels between environments
- Track changes through version control
Sensitive credential fields such as authentication tokens, secrets, and passwords appear as null or blank values in the exported file. This behavior protects your credentials from accidental exposure. You must manually add these values when you import the channel into a new environment.
Delete channels
To delete a channel, run the following command:BASH
Channel types
Use channel integrations to connect an agent to external communication platforms. Each channel type has its own set of requirements and integration steps.Understand event URLs
When you create a channel, the ADK provides an event URL. External platforms use this URL to send messages to your agent.Event URL format
Viewing event URLs
The event URL is displayed when you create or import a channel:BASH
Best practices
Security
- Store credentials securely by using environment variables or a secret manager
- Do not commit credentials to version control
- Rotate credentials regularly
- Use different credentials for draft and live environments
Environment management
- Test each channel in the draft environment before you move it to the live environment
- Apply consistent naming conventions across environments
- Document channel configurations so that your team can review and reuse them

