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

# print_message

> Display messages in the Narada extension side panel chat using the Python SDK

The `print_message` method displays custom messages in the Narada extension's side panel chat. This is different from Python's regular `print()` function - use this method when you want to show messages to end users viewing the chat or inject messages into the chat history for agents to read later.

<Note>
  This method only displays messages in the Narada extension side panel chat. If you just want to print something to your Python console, use the regular `print()` function instead.
</Note>

## Method Signature

```python theme={null}
async def print_message(
    self,
    *,
    message: str,
    timeout: int | None = None,
) -> None
```

## Parameters

<ParamField query="message" type="str" required>
  The text message to display in the side panel chat.

  ```python theme={null}
  message="Task completed successfully!"
  message="Processing item 3 of 10..."
  ```
</ParamField>

<ParamField query="timeout" type="int | None" default="None">
  Maximum time in seconds to wait for the message to be displayed. If `None`, uses the default system timeout.

  ```python theme={null}
  timeout=10     # Wait up to 10 seconds
  timeout=None   # Use default timeout
  ```
</ParamField>

## Return Value

This method returns `None` and completes when the message has been displayed.

## Example

```python theme={null}
import asyncio

from narada import Agent, BrowserEnvironment

async def main():
    env = BrowserEnvironment()
    agent = Agent(environment=env)

    try:
        # Show a message in the chat
        await agent.print_message(message="Starting data extraction...")

        # Perform automation
        await agent.go_to_url(url="https://example.com")
        response = await agent.run(prompt="extract the page title")

        # Show results in the chat
        await agent.print_message(message=f"Extracted title: {response.text}")
    finally:
        await env.close()

if __name__ == "__main__":
    asyncio.run(main())
```
