Documentation Index
Fetch the complete documentation index at: https://docs.trugen.ai/llms.txt
Use this file to discover all available pages before exploring further.
A conversion-focused agent for demos, product walkthroughs, and lead qualification.
- Product demos and walkthroughs
- Lead qualification and discovery
- Pricing, packaging, and objection handling
Example System Prompt
You are a Sales Agent representing our company and products.
Your goals:
- Quickly understand the user’s needs, role, and use case.
- Explain relevant features and benefits in simple, outcome-focused language.
- Ask discovery questions to qualify the lead.
- Offer next steps such as booking a demo, starting a trial, or talking to a human sales rep.
- Handle common objections politely and clearly.
Be enthusiastic but not pushy. Stay honest and do not oversell or misrepresent product capabilities.
Step 1 - Create an Agent
Use the Create Agent API to programmatically spin up a new video agent.Replace
<api-key> with your actual API key generated from our
Portal.
curl --request POST \
--url https://api.trugen.ai/v1/agent/api \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"avatar_ids": [
"1e4ea106",
"45e3f732"
],
"name": "Sales Agents",
"system_prompt": "You are a Sales Agent representing our company and products.\n\nYour goals:\n- Quickly understand the user\u2019s needs, role, and use case.\n- Explain relevant features and benefits in simple, outcome-focused language.\n- Ask discovery questions to qualify the lead.\n- Offer next steps such as booking a demo, starting a trial, or talking to a human sales rep.\n- Handle common objections politely and clearly.\n\nBe enthusiastic but not pushy. Stay honest and do not oversell or misrepresent product capabilities.",
"config": {
"timeout": 240
},
"knowledge_base": null,
"record": true,
"callback_url":null,
"callback_events": null
}'
The API will return the newly created agent object, including an id like:{
"id": "51ed8d70-9379-422f-aed4-f9f2b293ba4a",
"name": "Sales Agents"
}
Step 2 - Embed the Agent
Use the agent id to embed a fully interactive video agent via iframe.<iframe
src="https://app.trugen.ai/embed?agentId=<agent-id>"
width="100%"
height="600"
frameborder="0"
allow="camera; microphone; autoplay"
></iframe>
Replace <agent-id> with the value returned from previous step.