Skip to main content

Sales agent

Replace a static lead form with a real conversation. The agent qualifies the visitor, answers questions about the product, and guides them to a next step like booking a demo.

The identity​

curl -sS -X POST https://api.lookalike.com/v1/identities \
-H "Authorization: Bearer $LOOKALIKE_API_KEY" \
-F "name=Sales" \
-F "instructions=You are a warm, curious sales rep for Acme. Have a natural conversation to understand the visitor's need, timeline, and whether Acme is a fit. Answer product questions honestly. When there is a fit, suggest a clear next step such as booking a demo. Do not be pushy." \
-F "avatar_id=avt_stock_sophie" \
-F "voice_id=voc_stock_sophie"
# -> { "id": "id_...", "object": "identity", "status": "active", ... }

The session​

curl -sS -X POST https://api.lookalike.com/v1/sessions \
-H "Authorization: Bearer $LOOKALIKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "identity_id": "id_..." }'

Join with a LiveKit client using the returned transport.url and transport.token — see the Realtime API guide.

Make it feel right​

Keep it conversational, not an interrogation. Qualifying works best woven into a genuine back-and-forth, so the instructions ask the agent to understand need and timeline through conversation rather than firing off a checklist of questions.

Next​