> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Channel • AI Agent SDK

> add_channel: Create a named channel.

# add\_channel

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PushChannelProtocol**](../classes/PushChannelProtocol) class in the [**protocols**](../modules/protocols) module.

Create a named channel.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_channel(channel_name: str, metadata: Optional[Dict[str, Any]]) -> bool
```

## Parameters

<ParamField query="channel_name" type="str" required={true}>
  Unique channel name
</ParamField>

<ParamField query="metadata" type="Optional" required={false}>
  Optional channel metadata
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if created, False if already exists
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L1283">
  `praisonaiagents/gateway/protocols.py` at line 1283
</Card>
