***

title: aiUnhold
slug: /reference/typescript/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="string | undefined" toc={true}>
  A prompt for the AI to speak upon resuming (e.g., "Thank you for holding.
  I have your information now.").
</ParamField>

## **Returns**

`Promise<Record<string, unknown>>` -- Server response confirming the AI unhold.

## **Example**

```typescript {24}
import { RelayClient } from '@signalwire/sdk';

const client = new RelayClient({
  project: process.env.SIGNALWIRE_PROJECT_ID!,
  token: process.env.SIGNALWIRE_TOKEN!,
  contexts: ['default']
});

client.onCall(async (call) => {
  await call.answer();

  // Start an AI agent
  const action = await call.ai({
    prompt: { text: 'You are a support agent.' },
  });

  // Put the AI on hold
  await call.aiHold({ prompt: 'One moment please.' });

  // Do some processing...
  await new Promise((resolve) => setTimeout(resolve, 5000));

  // Resume the AI
  await call.aiUnhold({ prompt: 'Thanks for waiting. I found your information.' });
});

await client.run();
```