Example prompts
Summarize
Summary of Example prompts
This guide presents example prompts to help ServiceNow customers effectively utilize Build Agent for building applications, adding governance, UI customization, and managing ServiceNow metadata. It provides practical prompt templates tailored to common development goals, enabling you to accelerate app creation, extension, documentation, and security enhancements while maintaining organizational standards.
Show less
Prompting Best Practices
- Each message submitted to Build Agent counts as a prompt; responses to clarifying questions also count, but approving plans does not.
- Draft prompts carefully to maximize value from each interaction.
- Include governance and security requirements explicitly in prompts to ensure compliance and secure app development.
Key Prompt Types and Their Uses
- Plan: Request detailed app plans including data model, roles, and business rules before implementation.
- Prototype: Build initial app versions with basic roles, flows, and UI components.
- Brainstorm: Explore required tables, flows, and catalog items for business problems.
- Extend: Add fields, business rules, or ACLs to existing apps or base system tables with plan approval.
- Debug and Learn: Diagnose errors and understand ServiceNow concepts with coaching prompts.
- Document: Generate README files, app architecture summaries, and user guides.
- Test and Security: Create Automated Test Framework (ATF) tests and enforce role-based access control.
- Diagram and Flow: Produce ER diagrams and create event-triggered flows.
Getting Started Approaches
- Prototype a simple app by describing it briefly, reviewing the plan, and approving the build.
- Document existing custom scoped apps to produce summaries without risk.
- Extend existing apps or base tables by safely adding features with plan approvals and generating tests and documentation.
Governance and Compliance
Embedding governance requirements in prompts supports secure, compliant application development by aligning results with organizational policies. Examples include:
- Defining roles and ACLs to restrict access appropriately.
- Specifying data sensitivity with encryption and restricted access.
- Including audit logging and compliance standards like GDPR.
- Requesting documentation for governance reviews.
Practical Outcomes for ServiceNow Customers
- Easily create and extend applications with clear, actionable prompt templates.
- Ensure security and compliance requirements are integrated from the start.
- Generate comprehensive documentation and testing artifacts to support app lifecycle management.
- Leverage example prompts to streamline workflows, reduce errors, and accelerate app delivery on the ServiceNow AI Platform.
Explore example prompts for building apps, as well as adding governance, UI and other ServiceNow metadata to help you get started with prompting Build Agent.
To learn more about prompting, see this Community article on The fastest way to learn Build Agent prompting? Ask Build Agent.
Prompting overview and tips
For more guidelines on prompting, see General guidelines for Build Agent.
Get started with prompting
Additional prompt suggestions
- Improve generated user interfaces
- Create ATF tests
- Create QA and UAT test plans
- Create a summary of all application functionality
- Add additional industry-specific use cases
- Create an announcement
- Create a user guide
- Generate release notes
- Draft change management plans
- Create training materials for end users
- Build data migration plans
- Generate workflow optimization suggestions
- Prepare executive summary for stakeholders
Example Build Agent prompt to build an app
Prompt: Create an application that handles several types of issues related to cash management. Create a custom data model with tables for each type of request. Add fields that are typical for these types of issues to each table. Request tables should extend the Task table. Create custom states for each request type to track issue resolution.
Example Build Agent prompt to add security to an app
- Requesters who submit issues and can only view their own requests.
- Fulfillers who can view and edit all requests.
Example Build Agent prompt to add business rules to an app
Prompt: Create business rules for each request that is triggered by state changes in the workflow. Design the business rules to work together to create business processes aligned to industry best practices for each type of issue.
Example Build Agent prompt to generate different UIs for an app
Prompt 1: Create an easy to use UI for users with the cash management fulfiller role to view all issues, update and complete them.
Prompt 2: Create a UI for cash management requesters to submit issues and view or edit issues that they have previously created.
Example prompts for governance
Prompting with governance requirements helps produce secure and compliant applications on the ServiceNow AI Platform. By embedding governance requirements directly into your prompts, you help the AI produce results aligned with your organizational standards for security, compliance, and quality.
For more information on governance, see Build Agent governance.