AI Prompts
This page is accessed via Configuration and Administration > Power Data > General > AI Prompts.
Use this page to add agentic prompts for custom AI agent queries. An agentic prompt is the first question in an agentic chat.
Prompt writing can be very sophisticated. Look at the sample prompts in the PUBLIC domain for examples on how to phrase prompts.
Macros of the form {<macro-name>} may be entered into prompts. These are evaluated before prompts are set to the AI. These macros currently include:
- content: See the Prompt Content section.
- audience: The audience fragment for insertion into the prompt.
- guardrail: The guardrail fragment for insertion into the prompt, for Generative AI only.
- output: The output fragment for insertion into the prompt.
- language: The ISO language specification for the current user. This is based on User Preferences.
- country: The country preference for the current user.
- timeZone: The time zone preference for the current user.
- currency: The currency preference for the current user.
- weight: The weight preference for the current user.
- volume: The volume preference for the current user.
- translation: A special marker to add language requests for non-English users. When a user's language is not English, the prompt will include the following text: Translate the results into ISO language {language}.
Prompt Content
Prompt content changes based on use cases.
SQL Analysis
- content: a simple string holding SQL.
Explain Plan
- content: a simple string holding the entire database explain plan.
Shipment Summary
- content: a simple string holding the shipment GID.
Bulk Plan
- content.diagnosticLogFileID: a string holding the bulk plan's diagnostic log file ID.
Note: Open-ended agents have no content provided. The first chat question asked by the user becomes content.
Rate Inquiry
- Rate Inquiry is an open-ended agent. No content is provided. The first question asked by the user becomes content.
Adding an AI Prompt
- Enter an AI Prompt.
- Enter an AI Agent Query Type ID. Note that the AI agent query type on the AI prompt must match the agent query type on any AI agent query to which you attach this prompt.
- Select a domain from the Domain Name drop-down list.
- Enter a Prompt.
- Click Finished.