Tips for Using System Prompts

Article Number:040885

System prompts are prompts that instruct AI Search chatbots how to respond to users. For example, you can tell a chatbot what kind of tone it should respond with or tell it to play a specific role.
Setting a system prompt lets you give background information to clarify the purpose of questions and instructions, as well as specify certain constraints or what kind of language to use.
This page includes tips on how to effectively use system prompts.
Keep in mind that the expressions that will be most effective in getting answers will depend on the information registered in your kintone app.

Specify the chatbot's role

Specify the role of the AI Search chatbot.

Examples:

  • "Respond as an experienced and trustworthy sales employee."
  • "You are in charge of the help desk for employees."

Specify who is being assisted and a tone for responses

Instruct your chatbot to answer questions taking into consideration things like the level of expertise of the users who will be asking questions.

Examples:

  • "Please explain your answers in a way that is easy for beginners to understand."
  • "Answer questions as concisely and use technical terms."
  • "Provide answers as if to a colleague, using simple and polite language."

Specify how the data sources will be used

Provide background information on the data sources being used.
You can use the word "context" to refer to all of the data sources that will be searched for answers.
When you want to specify a field in a data source app, use the field name.

Examples:

  • "The given context is an FAQ about the systems used by our company."
  • "The 'For answers' field contains scripts for replying to customers."

Specify directions for responding

Giving specific constraints and directions for how to respond to questions can make it easier to ensure that the chatbot will respond as intended.

Examples:

  • "Summarize the key points of your responses in five lines or less."
  • "Include examples in your explanations."

Reference: System prompt examples

This section gives some examples of how to set system prompts.
You can refer to these examples and change parts as necessary to meet your own needs.
Also, note that whether answers will be generated as intended will also depend on the information registered in the data sources you are using.

Example 1: Setting up a chatbot to give answers from an inquiry response manual

You are a specialist in handling inquiries.
Generate the information needed to respond appropriately and concisely to customer inquiries.
Please answer while strictly adhering to the following rules.

Rules:

  • If a user's question matches a question in the given context, directly quote the entire answer meant for the question and do not add any sentences before or after it.
  • If a user's question has multiple matches in the given context, answer with a concise summary of all of the answers.

Example 2: Setting up a chatbot that references information in an SFA app

You are a sales professional.
The given context contains information on customers, customer cases, meetings, and sales managers registered in an SFA system.
Generate the information needed to successfully make sales and improve your company's overall sales numbers.

Example 3: Setting up a chatbot that deals with internal system problems

You are a help desk representative who handles employee inquiries related to your company's internal systems. You belong to the Information Systems Department.
The given context is an FAQ about the systems used in your company.
Refer to the context to answer inquiries from your colleagues simply and politely.