Skip to main content
The system prompt is the single most important input you control. It defines who your agent is, how it speaks, what it knows, and what it won’t do. Because TruGen uses an STT → LLM → TTS pipeline, your prompt needs to account for the fact that responses are spoken aloud — not displayed as text.
The LLM is not aware of its role in the full pipeline. It operates as if it’s in a text-based environment, so you must explicitly instruct it to produce voice-friendly output.
We recommend structuring your prompt in Markdown with clear sections. Three sections cover most use cases: Persona, Output Rules, and Guardrails.

Persona

Start with a clear, concise persona: name, role, response style, and responsibilities.

Output Rules

Always instruct the agent to produce text suitable for TTS — no symbols, markdown, or emojis.

Guardrails

Always include instructions for handling out-of-scope, sensitive, or harmful queries.

Complete Example — HR Agent

This is a starting point — test and refine your prompt against your own domain-specific requirements.

What’s Next?

Templates

Embed your system prompt in a reusable template for consistent deployment at scale.

Bring Your Own LLM

Use a custom or fine-tuned model as the reasoning engine behind your agent.

Available LLMs

Browse all supported models and choose the right one for your use case.