Skip to content

4. Prompt Templates ​

Copyable templates to generate complete apps. Use these as a starting point and adapt to your scenario.

How to use ​

  1. Copy the template below
  2. Replace the [bracketed] fields with your business details
  3. Paste into the Madrix chat and click Generate
  4. Review and approve the specification
  5. Iterate from there

CRM — Customer Relationship Management ​

Create a project named: [Company] CRM

Goal: manage customers, contacts, deals and activities.

Modules:
- Customers
- Deals
- Activities

Entities:
- Customer:
  - name (required)
  - segment (picklist: SMB | Mid-Market | Enterprise)
  - status (picklist: Prospect | Active | Churned)
  - industry (text)
  - website (text)
  - notes (text)

- Contact:
  - name (required)
  - email (required)
  - phone (text)
  - role (text)
  - customer (relationship: N Customer)

- Deal:
  - title (required)
  - stage (picklist: Lead | Qualified | Proposal | Negotiation | Won | Lost)
  - value (number)
  - closeDate (date)
  - customer (relationship: N Customer)
  - owner (relationship: 1 User)

- Activity:
  - type (picklist: Call | Email | Meeting | Demo)
  - date (date, required)
  - notes (text)
  - deal (relationship: N Deal)
  - contact (relationship: N Contact)

Business rules:
- A Deal cannot go back to a previous stage.
- Closed deals (Won or Lost) cannot be edited.

Minimum screens:
- Customer list with search by name and segment
- Deal pipeline (kanban by stage)
- Activity log per deal
- Dashboard: total deals by stage, monthly revenue forecast

Reports: none.

Helpdesk — Ticket Management ​

Create a project named: [Company] Helpdesk

Goal: manage support tickets with SLAs, queues and assignments.

Modules:
- Tickets
- Knowledge Base

Entities:
- Ticket:
  - title (required)
  - description (required)
  - status (picklist: Open | In Progress | Pending | Resolved | Closed)
  - priority (picklist: Low | Medium | High | Critical)
  - category (picklist: Bug | Feature Request | Question | Billing)
  - assignedTo (relationship: 1 User)
  - slaDeadline (date)

- Article:
  - title (required)
  - content (text, required)
  - category (text)
  - published (boolean)

Business rules:
- Critical tickets must be assigned within 1 hour of creation.
- Resolved tickets auto-close after 72 hours with no response.
- Closed tickets cannot be reopened; a new ticket must be created.

Minimum screens:
- Ticket queue (list with filter by status, priority, assignee)
- Ticket detail with activity timeline
- Knowledge base article list and viewer
- Dashboard: open tickets by priority, average resolution time

Reports: none.

OKRs — Objectives and Key Results ​

Create a project named: [Company] OKRs

Goal: track company, team and individual OKRs with progress updates.

Modules:
- OKRs

Entities:
- Objective:
  - title (required)
  - description (text)
  - owner (relationship: 1 User)
  - cycle (picklist: Q1 | Q2 | Q3 | Q4)
  - year (number)
  - status (picklist: On Track | At Risk | Off Track | Done)

- KeyResult:
  - title (required)
  - metric (text)
  - startValue (number)
  - targetValue (number)
  - currentValue (number)
  - unit (text)
  - objective (relationship: N Objective, required)

Business rules:
- Key Result progress is calculated as: (currentValue - startValue) / (targetValue - startValue) * 100.
- Objective status is automatically set based on the average progress of its Key Results.

Minimum screens:
- OKR list grouped by cycle and owner
- Objective detail with Key Results and progress bars
- Dashboard: company progress overview by cycle

Reports: none.

Internal Portal — Requests and Approvals ​

Create a project named: [Company] Internal Portal

Goal: handle internal requests (vacation, procurement, expenses) with multi-level approvals.

Modules:
- Requests

Entities:
- Request:
  - type (picklist: Vacation | Procurement | Expense | Other)
  - title (required)
  - description (text)
  - amount (number)
  - requestDate (date, required)
  - requester (relationship: 1 User)
  - status (picklist: Draft | Pending Approval | Approved | Rejected | Cancelled)
  - approver (relationship: 1 User)
  - approvalNotes (text)
  - approvedAt (date)

Business rules:
- Requests above [threshold] require a second approval.
- Approved or Rejected requests cannot be edited.
- Only the requester can cancel a Draft or Pending Approval request.

Minimum screens:
- My Requests list (own requests)
- Pending Approvals list (for approvers)
- Request detail with approval history
- Dashboard: requests by status and type this month

Reports: none.

Next: 5. Using Editor Mode →

© Madrix Software. All rights reserved.