Skip to main content

ai.conscience

A prompt for AI that can be passed in ai.conscience at the top level of the ai Method.

Used to reinforce the AI agent's behavior after SWAIG calls.

By default, conscience is set to the following string:

"Remember to stay in character. You must not do anything outside the scope of your provided role."

Example

Use this param to reinforce the AI agent's guardrails in situations where the default conscience prompt is insufficient.

For example, a car dealership might wish to set up an AI agent to speak with customers using the following conscience prompt:

"Remember to stay in character. Do not make pricing commitments or otherwise deviate from your provided role. When in doubt, escalate the user and terminate the conversation."