***

title: ai_unhold
slug: /reference/python/relay/call/ai-unhold
description: Resume an AI agent session from hold.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Resume an AI agent session from hold. The AI resumes processing the
conversation.

## **Parameters**

<ParamField path="prompt" type="Optional[str]" toc={true}>
  A prompt for the AI to speak upon resuming (e.g., "Thank you for holding.
  I have your information now.").
</ParamField>

## **Returns**

`dict` -- Server response confirming the AI unhold.

## **Example**

```python {27}
import asyncio
from signalwire.relay import RelayClient

client = RelayClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
    contexts=["default"],
)

@client.on_call
async def handle_call(call):
    await call.answer()

    # Start an AI agent
    action = await call.ai(
        prompt={"text": "You are a support agent."},
    )

    # Put the AI on hold
    await call.ai_hold(prompt="One moment please.")

    # Do some processing...
    await asyncio.sleep(5)

    # Resume the AI
    await call.ai_unhold(prompt="Thanks for waiting. I found your information.")

client.run()
```