Send Request to OpenAI
Documentation for Proposal Generation Utilities
Overview
The provided functions facilitate the generation of comprehensive and persuasive proposals for government contracts. These utilities are structured to assist in crafting various sections of a proposal document, leveraging detailed business and tender information.
Functions
-
get_system_prompt(proposal_section)- Generates a structured prompt for creating a specific section of a proposal.
- Parameters:
proposal_section: Text containing the section-specific requirements and format instructions.
- Returns:
- A string that forms a detailed prompt for generating the proposal section.
-
get_user_prompt(supplier_info, business_description, tender_info)- Constructs a detailed prompt using supplier and tender information, which is then used to generate a tailored proposal.
- Parameters:
supplier_info: Dictionary containing details about the supplier.business_description: A brief description of the business.tender_info: Detailed information about the tender.
- Returns:
- A string that consolidates all provided information into a structured prompt for proposal generation.
-
get_free_user_system_prompt()- Provides a comprehensive system prompt for free users to generate a complete proposal using minimal inputs.
- Returns:
- A string prompt detailing all necessary sections of a proposal, specifically designed for free tier users.
Usage Example
# To generate a prompt for a specific section of the proposalproposal_section_text = proposal_sections[0] # Assuming 'proposal_sections' is predefinedsystem_prompt = get_system_prompt(proposal_section_text)
# To generate a user-specific prompt for proposal creationsupplier_info = { "organizationName": "Tech Solutions Ltd.", "country": "USA", "companyType": "Private", "industry": "Technology", "organizationType": "SME"}business_description = "Tech Solutions Ltd specializes in providing bespoke software solutions."tender_info = "Government tender for developing a secure data handling system."user_prompt = get_user_prompt(supplier_info, business_description, tender_info)
# Example of obtaining a system prompt for a free userfree_user_prompt = get_free_user_system_prompt()Key Features
- Tailored Prompts: Dynamically creates detailed prompts based on specific sections of a proposal or comprehensive business and tender data.
- Flexibility: Supports various levels of proposal detail, suitable for both premium and free tier users.
- Efficiency: Streamlines the proposal creation process by providing structured and detailed guidance on the content required for competitive proposal submissions.