Overview
Prompts are the instructions given to AWS Bedrock (Claude) for each step of the proposal workflow. The prompt manager allows administrators to:- Create and edit system and user prompts
- Organize prompts by section, sub-section, and category
- Publish prompts to make them active
- Track version history and changes
- Preview and test prompts before deployment
Prompt structure
Each prompt consists of two components:System prompt
The system prompt sets the AI’s role, expertise, and behavior:User prompt template
The user prompt template contains the specific instructions and context, with placeholders for dynamic data:Prompt metadata
Each prompt includes organizational metadata:| Field | Description | Example |
|---|---|---|
section | Main feature area | proposal_writer, newsletter_generator |
sub_section | Workflow step | step-1, step-2, rfp-analysis |
category | Specific task | RFP Analysis, Concept Generation |
categories | List of applicable categories | ["RFP Analysis", "Requirements Extraction"] |
is_active | Whether this prompt is currently used | true / false |
version | Version number | 1, 2, 3 |
Prompt organization
Sections and sub-sections
Prompts are organized hierarchically:Active prompt selection
When the system needs a prompt, it queries DynamoDB:Only ONE prompt per section/sub-section/category combination can be active at a time. Publishing a new prompt automatically deactivates the previous one.
Managing prompts
Create a new prompt
Update an existing prompt
- Increment version number
- Update
updated_attimestamp - Preserve change history in
comments
Publish a prompt
To make a prompt active:- Sets this prompt’s
is_activetotrue - Finds any other prompts with matching section/sub_section/category
- Sets their
is_activetofalse
List all prompts
section: Filter by section (e.g.,proposal_writer)sub_section: Filter by sub-section (e.g.,step-1)is_active: Filter by active status (true/false)
Delete a prompt
Placeholder formats
Supported formats
The system supports TWO placeholder formats:- Double curly braces:
{{VARIABLE_NAME}} - Curly + square brackets:
{[VARIABLE_NAME]}
Common placeholders
| Placeholder | Description | Example |
|---|---|---|
{{RFP_TEXT}} | Full RFP document text | RFP content |
{{CONCEPT_TEXT}} | User’s concept document | Concept content |
{{RFP_ANALYSIS}} | Structured RFP analysis result | JSON object |
{{CONCEPT_ANALYSIS}} | Concept analysis result | JSON object |
{{SELECTED_SECTIONS}} | User-selected sections for elaboration | Array |
{{USER_COMMENTS}} | User feedback on sections | Object |
{{PROPOSAL_STRUCTURE}} | Generated proposal structure | JSON object |
{{DRAFT_CONTENT}} | User’s draft proposal text | Text content |
Version control
Version history
Every prompt update increments the version:Rollback
To rollback to a previous version:- Copy the old prompt’s content
- Create a new prompt with the old content
- Publish the new prompt to make it active
Testing prompts
Preview endpoint
Test with Bedrock
For thorough testing, administrators can:- Create a test proposal
- Upload test documents
- Temporarily publish the new prompt
- Trigger the workflow step
- Review the AI output
- Publish the production prompt if satisfied
Best practices
Prompt design
✅ Be specific: Clearly define the task and expected output format✅ Use examples: Include sample outputs in the prompt
✅ Set constraints: Specify word limits, formatting requirements
✅ Request JSON: For structured data, always request JSON output
✅ Include context: Provide relevant background and objectives
Version management
✅ Test before publishing: Always test in a non-production environment✅ Document changes: Use the
comments field to explain modifications✅ Incremental updates: Make small, focused changes to isolate issues
✅ Monitor impact: Track proposal quality metrics after prompt changes
Security
✅ Restrict access: Only grant admin privileges to trusted users✅ Audit changes: Review
change_history regularly✅ Backup prompts: Export active prompts periodically
Authentication
All admin prompt endpoints require:- JWT Bearer token with admin privileges
is_admin: trueclaim in the token
Next steps
Admin API reference
Complete API documentation for prompt management
Proposal workflow
See how prompts are used in the workflow
Bedrock integration
Learn about AWS Bedrock and Claude integration
User management
Manage admin users and permissions