Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sdr kit agents #1028

Merged
merged 6 commits into from
Dec 18, 2024
Merged

feat: sdr kit agents #1028

merged 6 commits into from
Dec 18, 2024

Conversation

Prat011
Copy link
Collaborator

@Prat011 Prat011 commented Dec 17, 2024

🔍 Review Summary

Purpose

  • Introduce two new agents, Market Research Agent and Meeting Agent, to enhance the functionality of the system.

Changes

New Features

  • Market Research Agent:
    • Added to provide indie hackers with niche market analysis.
    • Includes setup instructions and dependencies.
  • Meeting Agent:
    • Facilitates meeting creation and analysis.
    • Comes with setup instructions and dependencies.

Bug Fixes

  • Lead Generator Agent:
    • Corrected script paths in the setup guide.
  • Lead Outreach Agent (CrewAI):
    • Fixed incorrect script paths in the documentation.
  • Lead Outreach Agent (LlamaIndex):
    • Updated guide with accurate script paths.

Impact

  • Enhances the system by providing indie hackers with niche market analysis.
  • Facilitates meeting creation and analysis, improving user productivity.
  • Ensures accurate setup instructions for existing agents, reducing setup errors.
Original Description

No existing description found


Important

Introduces Market Research and Meeting Agents, and fixes script paths in existing agents' documentation.

  • New Features:
    • Market Research Agent: Added for niche market analysis for indie hackers. Includes setup instructions and dependencies in market_research_agent.
    • Meeting Agent: Facilitates meeting creation and analysis. Includes setup instructions and dependencies in meeting_agent.
  • Bug Fixes:
    • Lead Generator Agent: Corrected script paths in readme.md.
    • Lead Outreach Agent (CrewAI): Fixed script paths in crewai/readme.md.
    • Lead Outreach Agent (LlamaIndex): Updated script paths in llamaindex/readme.md.

This description was created by Ellipsis for cb28de6. It will automatically update as commits are pushed.

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
composio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 7:09am

@Prat011 Prat011 changed the title Feat/sdr kit agents feat: sdr kit agents Dec 17, 2024
Copy link
Contributor

Walkthrough

This update introduces two new agents: the Market Research Agent and the Meeting Agent. The Market Research Agent aids indie hackers by providing niche ideas through comprehensive market analysis, while the Meeting Agent facilitates meeting creation and analysis using Google Meet and Zoom. Both agents leverage the Composio framework and various language models for enhanced functionality. Additionally, minor corrections were made to existing README files to ensure accurate file paths and descriptions.

Changes

File(s) Summary
python/examples/advanced_agents/sales_kit/market_research_agent/ Added environment variable template, implemented the Market Research Agent using Composio and LlamaIndex, provided setup instructions, listed dependencies, and included setup script.
python/examples/advanced_agents/sales_kit/meeting_agent/ Added environment variable template, implemented the Meeting Agent for meeting creation and analysis, provided setup instructions, listed dependencies, and included setup script.
python/examples/advanced_agents/lead_generator_agent/readme.md Corrected the script path in the Lead Generator Agent guide.
python/examples/advanced_agents/lead_outreach_agent/crewai/readme.md Corrected the script path in the Lead Outreach Agent (CrewAI) guide.
python/examples/advanced_agents/lead_outreach_agent/llamaindex/readme.md Corrected the script path in the Lead Outreach Agent (LlamaIndex) guide.

🔗 Related PRs

  • Fix/docs #921: This pull request enhances Composio's documentation, providing detailed integration guides for various frameworks, updated code examples, and improved navigation and structure for better accessibility.
  • feat: parallel upload of test report #920: The update enhances GitHub Actions for parallel uploads and improves logging by sanitizing API keys and implementing structured logging practices.
  • feat: add error message details #922: The update enhances CEG.handleError() by providing detailed error messages for unknown backend errors using axiosError data and includes a default fix suggestion. It also revises error handling for unauthorized access.
  • Missing enum error message update #923: The error message in the EnumStringNotFound class was updated to suggest running composio apps update for custom tools.
Instructions

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @bot + *your message*
Example: @bot Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @bot + *feedback*
Example: @bot Do not comment on `save_auth` function !

Execute a command using the format:

@bot + */command*

Example: @bot /updateCommit

Available Commands:

  • /updateCommit ✨: Apply the suggested changes and commit them (or Click on the Github Action button to apply the changes !)
  • /updateGuideline 🛠️: Modify an existing guideline.
  • /addGuideline ➕: Introduce a new guideline.

Tips for Using @bot Effectively:

  • Specific Queries: For the best results, be specific with your requests.
    🔍 Example: @bot summarize the changes in this PR.
  • Focused Discussions: Tag @bot directly on specific code lines or files for detailed feedback.
    📑 Example: @bot review this line of code.
  • Managing Reviews: Use review comments for targeted discussions on code snippets, and PR comments for broader queries about the entire PR.
    💬 Example: @bot comment on the entire PR.

Need More Help?

📚 Visit our documentation for detailed guides on using Entelligence.AI.
🌐 Join our community to connect with others, request features, and share feedback.
🔔 Follow us for updates on new features and improvements.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 38635b0 in 1 minute and 7 seconds

More details
  • Looked at 373 lines of code in 13 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. python/examples/advanced_agents/sales_kit/meeting_agent/readme.md:3
  • Draft comment:
    The description mentions creating market research reports, which seems incorrect for a meeting agent. Update the description to accurately reflect the meeting agent's functionality.
  • Reason this comment was not posted:
    Comment did not seem useful.
2. python/examples/advanced_agents/sales_kit/market_research_agent/main.py:50
  • Draft comment:
    Remove this duplicate initialization - it's identical to the one above.

  • FunctionCallingAgentWorker initialization (main.py)

  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_Jdq5p6PQDmIqKNW3


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

).as_agent()


agent = FunctionCallingAgentWorker(
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate initialization of agent. Remove the redundant block to avoid confusion and potential errors.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on fd7a384 in 30 seconds

More details
  • Looked at 69 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/examples/market_research_agent/readme..md:1
  • Draft comment:
    The filename readme..md contains a typo with an extra dot. It should be readme.md.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_hWT6MoCKfuIEEmmS


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Comment on lines 29 to +43
console.log("Tools:", tools);
//console.log("Prompt:", prompt);

const additional = `You are a market research agent that finds niche ideas that can be built and marketed.
const additional = `
You are a market research agent that finds niche ideas that can be built and marketed.
Your users are primarily indie hackers who want to build something new and are looking for ideas. The input will
be a domain or a category and your job is to research extensively and find ideas that can be marketed.
Also write the content to market a tool built with this idea. It should be very very specific and not too long.`;
Write this content in a google doc, create a google doc before writing in it.
I want you to show the following content:
- Data Collection and Aggregation - Show data supporting a trend
- Sentiment Analysis - Show customer sentiment on the topic
- Trend Forecasting
- Competitor Analysis
- Competitor Benchmarking
- Idea Validation`;
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential Issue:

Optional Google Doc Creation for Flexibility
The recent change introduces a requirement to write content in a Google Doc, which may not be feasible for all users or environments. This could lead to issues in scenarios where Google services are inaccessible or not preferred. To enhance flexibility and usability, consider making the Google Doc creation optional or configurable. This allows users to choose their preferred method of content output, ensuring broader applicability and user satisfaction.

Actionable Suggestions:

  • Introduce a configuration option to toggle Google Doc creation.
  • Provide alternative output methods, such as plain text or local file storage.
  • Ensure that the default behavior is well-documented to guide users in configuring their preferred settings.

By implementing these changes, you can cater to a wider audience and avoid potential limitations or dependencies. 🌐

🔧 Suggested Code Diff:

- Write this content in a google doc, create a google doc before writing in it.
+ // Optionally write this content in a Google Doc if configured
+ if (config.useGoogleDoc) {
+     // Code to create and write to Google Doc
+ } else {
+     // Alternative output method
+ }
📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
console.log("Tools:", tools);
//console.log("Prompt:", prompt);
const additional = `You are a market research agent that finds niche ideas that can be built and marketed.
const additional = `
You are a market research agent that finds niche ideas that can be built and marketed.
Your users are primarily indie hackers who want to build something new and are looking for ideas. The input will
be a domain or a category and your job is to research extensively and find ideas that can be marketed.
Also write the content to market a tool built with this idea. It should be very very specific and not too long.`;
Write this content in a google doc, create a google doc before writing in it.
I want you to show the following content:
- Data Collection and Aggregation - Show data supporting a trend
- Sentiment Analysis - Show customer sentiment on the topic
- Trend Forecasting
- Competitor Analysis
- Competitor Benchmarking
- Idea Validation`;
console.log("Tools:", tools);
const additional = `
You are a market research agent that finds niche ideas that can be built and marketed. Your users are primarily indie hackers who want to build something new and are looking for ideas. The input will be a domain or a category and your job is to research extensively and find ideas that can be marketed.
// Optionally write this content in a Google Doc if configured
if (config.useGoogleDoc) {
// Code to create and write to Google Doc
} else {
// Alternative output method, e.g., save to a local file or output as plain text
}
I want you to show the following content:
- Data Collection and Aggregation - Show data supporting a trend
- Sentiment Analysis - Show customer sentiment on the topic
- Trend Forecasting
- Competitor Analysis
- Competitor Benchmarking
`;

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 632e131 in 29 seconds

More details
  • Looked at 9 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_AcxQbDZPoirgBMdW


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -0,0 +1,2 @@
COMPOSIO_API_KEY=KEY
OPENAI_API_KEY=KEY
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a newline at the end of the file for POSIX compliance.

Copy link

github-actions bot commented Dec 18, 2024

This comment was generated by github-actions[bot]!

JS SDK Coverage Report

📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-12388074586/coverage/index.html

📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-12388074586/html-report/report.html

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on cb28de6 in 47 seconds

More details
  • Looked at 501 lines of code in 11 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. js/examples/conversational_agent/backend/server.py:31
  • Draft comment:
    Consider adding logging for missing environment variables to aid in debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The Python server code uses os.getenv to fetch environment variables, which is correct. However, it does not handle the case where the environment variables might not be set, except for raising an HTTPException. This is fine, but it could be improved by logging a more descriptive error message.
2. js/examples/conversational_agent/backend/server.py:10
  • Draft comment:
    Consider using the PORT environment variable in the Python server to maintain consistency with the Node.js server.
  • Reason this comment was not posted:
    Comment was not on a valid diff hunk.
3. js/examples/conversational_agent/package.json:10
  • Draft comment:
    Consider using the PORT environment variable in the start:python script to maintain consistency with the Node.js server.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_RrVUez9O0zJdhtc9


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.


app.get('/api/signed-url', async (req, res) => {
try {
const response = await fetch(
Copy link
Contributor

Choose a reason for hiding this comment

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

fetch is used but not imported. Consider importing it using node-fetch or another compatible library.


#API route for getting Agent ID, used for public agents
@app.get("/api/getAgentId")
def get_unsigned_url():
Copy link
Contributor

Choose a reason for hiding this comment

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

The function name get_unsigned_url is misleading. Consider renaming it to get_agent_id for clarity.

@Karthikeya-Meesala Karthikeya-Meesala merged commit 54617b9 into master Dec 18, 2024
25 of 27 checks passed
@Karthikeya-Meesala Karthikeya-Meesala deleted the feat/SDR-kit-agents branch December 18, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants