Skip to content

Commit

Permalink
Update business process add and update prompts (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeepak-presidio authored Feb 21, 2025
1 parent c34462c commit 82e4dc5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-parrots-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"specif-ai": patch
---

add guidelines to add and update business process prompts
13 changes: 13 additions & 0 deletions backend/llm/prompts/09_add_business_process.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ Provide the Business Process Flow that effectively addresses both the client's r
final_business_process_flow must be a single paragraph, not a list or json format.
Generate an apt title for final_business_process_flow. Title should be a one-liner not more than 5 words.

STRICT:
(!) The business process flow MUST be based primarily on the client request description.
(!) Every sentence in the response MUST describe a distinct STEP/ ACTION within the business process flow.
(!) Response for final_business_process_flow should not contain:
- Marketing speak
- Phrases that are promotional or that summarize the overall purpose of the application
- Introductory phrases like "The business process starts with..." or "The process begins with.."
- Concluding statements about process effectiveness.
- Benefit-oriented language describing user advantages or positive outcomes (e.g., "for easier exploration," "efficiently manage," "seamlessly connect"). Focus on objective actions and data flow only.
(!) Do not include any other flows that are not part of the client request description.
(!) Ensure each step in the generated business process is directly and demonstrably related to fulfilling the actions described in the Client Request. Eliminate any steps that are generic, implied from the app description, product requirements, business requirements or not directly contributing to the Client Request's objective.
(!) Focus description ONLY on PROCESS FLOW: actions and data. EXCLUDE application properties.

Output Structure should be a valid JSON: Here is the sample Structure. Follow this exactly. Don't add or change the response JSON:

{
Expand Down
13 changes: 13 additions & 0 deletions backend/llm/prompts/10_update_business_process.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ Update the existing Business Process Flow that effectively addresses both the cl
final_business_process_flow must be a single paragraph, not a list or json format.
Generate an apt title for final_business_process_flow. Title should be an one-liner not more than 5 words.

STRICT:
(!) The business process flow MUST be based primarily on the client request description.
(!) Every sentence in the response MUST describe a distinct STEP/ ACTION within the business process flow.
(!) Response for final_business_process_flow should not contain:
- Marketing speak
- Phrases that are promotional or that summarize the overall purpose of the application
- Introductory phrases like "The updated business process starts with..." or "The updated process begins with.."
- Concluding statements about process effectiveness.
- Benefit-oriented language describing user advantages or positive outcomes (e.g., "for easier exploration," "efficiently manage," "seamlessly connect"). Focus on objective actions and data flow only.
(!) Do not include any other flows that are not part of the client request description.
(!) Ensure each step in the generated business process is directly and demonstrably related to fulfilling the actions described in the Client Request. Eliminate any steps that are generic, implied from the app description, or not directly contributing to the Client Request's objective.
(!) Focus description ONLY on PROCESS FLOW: actions and data. EXCLUDE application properties.

Output Structure should be a valid JSON: Here is the sample Structure:

{
Expand Down

0 comments on commit 82e4dc5

Please sign in to comment.