# Preview an AI-composed message

`needleComposePreview`

Preview an AI-composed outreach message without sending it. identity accepts the same forms as leads: LinkedIn public identifier, /in/ path, profile URL, or user id; Instagram username, @handle, or profile URL.

**Input**

- `channel` ("linkedin" | "instagram", required)
- `connectedAccountId` (string · uuid, required)
- `identity` (string, required): LinkedIn public identifier, /in/ path, profile URL, or user id (ACoAAA…); or Instagram username, @handle, or profile URL. Stored as the identifier.
- `prompt` (string, required)
- `context` ("profile" | "posts" | "conversation" | "lead_properties"[], optional)
- `maxChars` (integer, optional)
- `leadProperties` (object, optional)
