Skip to content

feat: add Proposal Document Generator agent - #635

Open
unnati0605 wants to merge 2 commits into
AditthyaSS:mainfrom
unnati0605:feat-proposal-document-generator
Open

feat: add Proposal Document Generator agent#635
unnati0605 wants to merge 2 commits into
AditthyaSS:mainfrom
unnati0605:feat-proposal-document-generator

Conversation

@unnati0605

@unnati0605 unnati0605 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a new AI agent called Proposal Document Generator which generates professional sales related proposal documents based on client requirements, pricing, proposed solution and project timeline.

Closes #75

Type of change

  • New agent
  • Bug fix
  • UI improvement
  • Documentation
  • Other

Checklist

  • I ran npm run build locally and it passed ✅
  • I tested my changes in the browser ✅
  • I did not break any existing agents ✅
  • I did not use import agents from '../agents/registry'
  • My PR has a clear description above ✅

Screenshots (if UI change)

No

Summary by CodeRabbit

  • New Features
    • Added a new proposal document generator for creating polished client proposals.
    • Includes guided input fields for client details, problem description, solution, pricing, and timeline.
    • Produces output in markdown with a structured proposal format.

@unnati0605
unnati0605 requested a review from AditthyaSS as a code owner June 27, 2026 11:10
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@unnati0605 is attempting to deploy a commit to the aditthyass' projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review Change Stack

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key: "issues"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

Adds a new proposal document generator agent definition with metadata, sample inputs, required input fields, a proposal-focused system prompt, and markdown output.

Changes

Proposal document generator

Layer / File(s) Summary
Agent configuration
src/agents/definitions/proposal-document-generator.js
Defines the proposal generator’s metadata, provider/model settings, example inputs, required input schema, system prompt, and markdown output type.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

level:beginner, quality:clean, type:feature, gssoc:approved

Suggested reviewers

  • AditthyaSS
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding a new Proposal Document Generator agent.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mergify

mergify Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Hey @unnati0605! 👋
Wow — your first contribution to iloveAgents! This is a big deal and I want you to know it means a lot. 🎊
Every agent on this platform started exactly like this — someone like you deciding to spend their time building something useful for everyone. That is something to be proud of.
A few things while you wait for the review:

  • Star the repo if you haven't already. Star it here
  • 📖 Check the Contributing Guide
  • 💬 Drop a comment if you get stuck — I reply within 24 hours
    Can't wait to ship this with you. 🚀
    Welcome to the iloveAgents family. 🙏
    @AditthyaSS

@mergify

mergify Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

hey @unnati0605! 👋
Your PR doesn't seem to be linked to an issue.
Please add this line to your PR description:
Closes #issue_number
Replace issue_number with the actual issue number you are solving.
This helps us track what each PR is fixing! 🔗
@AditthyaSS

@mergify mergify Bot added the needs-fix label Jun 27, 2026
@mergify

mergify Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

⚠️ Hey @unnati0605! This PR has a merge conflict that needs to be resolved before we can review or merge it.
Please sync your branch with the latest main and fix the conflicts.
Need help? Check out resolving merge conflicts.
@AditthyaSS

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/agents/definitions/proposal-document-generator.js (1)

57-71: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Ask for Markdown explicitly in the prompt.

outputType: "markdown" only changes rendering downstream; it does not make the model emit Markdown. A small prompt tweak here will make the output structure much more consistent in OutputRenderer.

Suggested fix
-  systemPrompt: `You are an expert sales proposal writer.
-  Given the client information,generate a professional proposal document.
+  systemPrompt: `You are an expert sales proposal writer.
+  Given the client information, generate a professional proposal document in Markdown.
 
   Include:
   Executive Summary
   Problem Statement
   Proposed Solution
   Scope of Work
   Pricing details
   Timeline
   Expected Outcomes
   Next Steps
 
-  Keep the proposal professional,convincing and concise.`,
+  Use Markdown headings for each section and bullet lists where helpful.
+  Keep the proposal professional, convincing, and concise.`,
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/agents/definitions/proposal-document-generator.js` around lines 57 - 71,
The proposal generator prompt in proposalDocumentGenerator should explicitly
instruct the model to produce Markdown, since outputType only affects rendering
and not generation. Update the systemPrompt used by the proposal document
generator to request a Markdown-formatted proposal (and keep the existing
section list), so the output is consistently consumable by OutputRenderer.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/agents/definitions/proposal-document-generator.js`:
- Around line 5-6: Update the user-facing description in
proposal-document-generator so it reads cleanly in the agent picker: fix the
missing spaces after commas and correct the “free lancing” wording. Use the
description field in the proposal document generator definition as the target,
and keep the copy polished and professional.

---

Nitpick comments:
In `@src/agents/definitions/proposal-document-generator.js`:
- Around line 57-71: The proposal generator prompt in proposalDocumentGenerator
should explicitly instruct the model to produce Markdown, since outputType only
affects rendering and not generation. Update the systemPrompt used by the
proposal document generator to request a Markdown-formatted proposal (and keep
the existing section list), so the output is consistently consumable by
OutputRenderer.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 90383982-a7d7-4db1-acca-9ef94199572a

📥 Commits

Reviewing files that changed from the base of the PR and between 4f57528 and 6c55564.

📒 Files selected for processing (1)
  • src/agents/definitions/proposal-document-generator.js

Comment on lines +5 to +6
description:
"Generate professional proposal documents for projects,free lancing, businesses,research and grants",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the user-facing description copy.

This string will read unpolished in the agent picker because of the missing spaces and the free lancing typo.

Suggested fix
   description:
-    "Generate professional proposal documents for projects,free lancing, businesses,research and grants",
+    "Generate professional proposal documents for projects, freelancing, businesses, research, and grants",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
description:
"Generate professional proposal documents for projects,free lancing, businesses,research and grants",
description:
"Generate professional proposal documents for projects, freelancing, businesses, research, and grants",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/agents/definitions/proposal-document-generator.js` around lines 5 - 6,
Update the user-facing description in proposal-document-generator so it reads
cleanly in the agent picker: fix the missing spaces after commas and correct the
“free lancing” wording. Use the description field in the proposal document
generator definition as the target, and keep the copy polished and professional.

@unnati0605 unnati0605 changed the title feat: add Proposal Document Generator agent feat: add Proposal Document Generator agent Closes #75 Jun 27, 2026
@unnati0605 unnati0605 changed the title feat: add Proposal Document Generator agent Closes #75 feat: add Proposal Document Generator agent Jun 27, 2026
@mergify

mergify Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

⚠️ This branch is out of date with main.
Please click "Update branch" to sync before merging.

@unnati0605

Copy link
Copy Markdown
Contributor Author

Hi @AditthyaSS, I have resolved the merge conflict and synced the branch with the latest main. Please let me know if further changes are required. Thank you!!

@unnati0605

Copy link
Copy Markdown
Contributor Author

Hi @AditthyaSS !! Kindly review this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add agent: Proposal Document Generator

1 participant