> ## 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 Inbound Handler • AI Agent SDK

> set_inbound_handler: Register the coroutine invoked for each relayed inbound message.

# set\_inbound\_handler

Method

> This is a method of the [**RelayTransport**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/RelayTransport.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Register the coroutine invoked for each relayed inbound message.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def set_inbound_handler(handler: Callable[['GatewayMessage'], Awaitable[None]]) -> None
```

## Parameters

**handler** `Callable` *required*

No description available.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L6672)
>
> `praisonaiagents/gateway/protocols.py` at line 6672


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.