> ## 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.

# Set Home • AI Agent SDK

> set_home: Set the home channel for a platform.

# set\_home

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

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

Set the home channel for a platform.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def set_home(platform: str, chat_id: str, thread_id: Optional[str]) -> None
```

## Parameters

<ParamField query="platform" type="str" required={true}>
  Platform name (e.g., "telegram", "slack", "discord")
</ParamField>

<ParamField query="chat_id" type="str" required={true}>
  Platform-specific chat/channel ID
</ParamField>

<ParamField query="thread_id" type="Optional[str]" required={false}>
  Optional thread ID for threaded platforms
</ParamField>

## Source

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