Skip to main content
A system prompt defines the style and behavior of what your agent says. Effective prompting can make LemonSlice-powered agents incredibly lifelike instead of robotic. When creating our agents, we’ve found a few helpful guidelines for agents.
Your system prompt controls what the agent speaks, not how the agent looks. Reference our Avatar Image Tips for image selection best practices.
Be concise. Short prompts reduce ambiguity. When instructions are compact and direct, the model has fewer ways to misinterpret them. Additionally, LLMs may degrade in response quality and response time if their context windows get too large. Separate instructions into sections with markdown. Sections create structure, which makes the instructions easier for for LLMs to follow. LLMs are trained to pay attention to headings. Without sections, your system prompt blurs together.
Briefly restate the most important instructions at the end. Models tend to weight the most recent tokens more during generation. Instructions near the end of the prompt are more likely to influence the response. Your avatar should know that they are a video agent. For example, a person chatting with your agent may ask what it looks like, or ask it to do something it can’t. Giving your video agent this context can keep a conversation without breaking the flow of conversation.
Normalize all text so that it’s spoken. Because we’re using LLM and TTS (text-to-speech) models, control the LLM to output symbols and numbers as words in responses. For example, bryce@gmail.com should become bryce at gmail dot com, and 3054448815 should be three zero five four four four eight eight one five. This prevents mispronunciations.