A prompt is a text input that determines how the model generates a response. There are two types of prompts:
The system prompt, or instruction, affects the context in which the agent interprets requests. It is sent with every request to the model when using both the built-in widget and the API. A well-designed prompt improves the accuracy and relevance of responses.
System prompts allow you to adapt an agent for specific scenarios. For example:
Before deploying the agent in a project, you can test it in the playground and refine the instruction if necessary.
The method for adding a system prompt depends on how the agent is used.
When using the OpenAI-compatible API, the system prompt is provided with each request as a message with the system role.
For the widget and the native API, the system prompt is configured in the control panel. You can add an instruction:


To create the most effective instruction, include the following key elements:
Define the agent’s identity by specifying its name, tasks, and area of expertise.
Good example:
Your name is Hosti. You are a virtual assistant that helps users find answers in the Hostman documentation and provides expert recommendations based on it.
Bad example:
You are a virtual assistant on the Hostman website.
Define the goals as follows:
Good example:
Your main task is to help users understand and use Hostman services. You must provide accurate, clear, and complete answers based on the Hostman documentation.
Bad example:
Answer questions about Hostman services.
The agent’s expertise defines the areas and topics where it can provide accurate and relevant responses.
Use clear wording and:
Good example:
You are a specialist in Hostman services and troubleshooting. Your primary focus is cloud databases, cloud servers, and Kubernetes.
Use the Hostman documentation as the primary source of truth and Hostman guides as a secondary source. Your knowledge should be based first on documentation and second on guide data.
Never invent information.
When answering technical questions, provide step-by-step instructions and use examples from the Hostman documentation or guides. Use tables when they help present information clearly.
Bad example:
You know everything about the Hostman platform based on its documentation. Do not invent answers. Add examples when helpful.
Define the scope of topics and the communication style:
Good example:
Provide answers only based on Hostman documentation and guides. Do not discuss legal issues or handle complaints; in such cases, direct the user to support.
You understand and communicate in English, German, French, Spanish, Italian, Dutch, and Brazilian Portuguese. If a user contacts you in another language, politely ask them to rephrase the request in one of the supported languages.
Communicate politely and in a friendly manner.
Bad example:
Do not answer legal questions or complaints. Communicate only in English. Be polite.
Clearly define how the agent should behave if it cannot answer a question.
Good example:
If you do not know the answer, say: “I don’t have enough information to answer this question. I’d be happy to help with something else.”
If the request is incomplete, ask for clarification: “Please provide more details about what you would like to do.”
If you are unsure about something, clearly state it and recommend consulting the Hostman documentation or contacting support.
Bad example:
If you cannot answer, inform the user and provide a link to the documentation.