-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix: add missing improvements from PR #1163 to PR #1162 #1164
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
88ecf08
fix: newsletter summarizer fixed
Prat011 2ddc340
fix: calendar agent fixed
Prat011 35e9275
fix: code execution agent fixed
Prat011 cb3cba6
fix: investment analyst fixed
Prat011 c6d34da
fix: e2e codes fixed
Prat011 adb1075
fix:langchain demo agent fixed
Prat011 93e1365
fix:lead generator agent fixed
Prat011 eafcf85
fix:lead outreach agent fixed
Prat011 f6770be
fix:market research agent fixed
Prat011 bda5aee
fix: meeting brief agent fixed
Prat011 81c0722
fix: newsletter-twitter-threads agent fixed
Prat011 3e45972
fix: openai agent fixed
Prat011 0754575
fix: portfolio generator agent fixed
Prat011 f284332
fix: prd generator fixed
Prat011 7ba976c
fix: reddit research agent fixed
Prat011 3bffba8
fix: report-template-generator agent fixed
Prat011 9722e83
fix: scheduling agent fixed
Prat011 f276a3f
fix: ai playground main example fixed
Prat011 1417801
fix: add missing improvements from PR #1163 to PR #1162
devin-ai-integration[bot] bd7bc6c
fix: remove duplicate readme with incorrect filename
devin-ai-integration[bot] 1175579
Merge branch 'master' into fix-pr1162-1736171567
Prat011 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Portfolio Generator Demo | ||
|
||
This demo shows how to create a portfolio website using Composio and Vercel AI. The agent generates ReactJS code for a portfolio website based on your professional information and saves it to a Google Doc. | ||
|
||
## Features | ||
- Generates ReactJS code for a portfolio website | ||
- Creates folder structure and setup instructions | ||
- Saves output to Google Docs | ||
- Uses Code Interpreter for code generation | ||
- Integrates with Google Docs for documentation | ||
|
||
## Setup | ||
|
||
1. Clone the repository and navigate to this folder: | ||
```bash | ||
git clone https://github.com/composioHQ/composio.git | ||
cd composio/js/examples/portfolio-generator | ||
``` | ||
|
||
2. Install dependencies: | ||
```bash | ||
pnpm install | ||
``` | ||
|
||
Required dependencies: | ||
- `@ai-sdk/openai`: For OpenAI model integration and GPT-4 access | ||
- `ai`: For text generation functionality | ||
- `composio-core`: For Composio toolset and entity management | ||
- `dotenv`: For environment variable management | ||
- `zod`: For data validation and type safety | ||
|
||
3. Set up environment variables: | ||
- Copy `.env.example` to `.env` | ||
- Fill in the required API keys: | ||
- `COMPOSIO_API_KEY`: Your Composio API key for tool access | ||
- `OPENAI_API_KEY`: Your OpenAI API key for GPT-4 model access | ||
- `GROQ_API_KEY` (Optional): Your Groq API key if using Groq models instead of OpenAI | ||
|
||
```bash | ||
# Copy the example environment file | ||
cp .env.example .env | ||
|
||
# Edit .env and add your API keys | ||
nano .env | ||
``` | ||
|
||
4. Run the demo: | ||
```bash | ||
node demo.mjs | ||
``` | ||
|
||
## How it works | ||
|
||
The demo: | ||
1. Sets up a Composio toolset with Code Interpreter and Google Docs integration | ||
2. Takes your professional information as input | ||
3. Uses AI to generate ReactJS code for a portfolio website | ||
4. Creates a detailed folder structure and setup instructions | ||
5. Saves all generated content to a Google Doc | ||
|
||
The agent will automatically process your information and generate a complete portfolio website setup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation: The changes made to the README file improve clarity by listing the required dependencies directly. However, the instructions for creating a
.env
file and adding API keys have been removed, which might be necessary for users to successfully set up the project. Consider re-adding these instructions to ensure users have all the necessary setup information.🔧 Suggested Code Diff:
📝 Committable Code Suggestion
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
OPENAI_API_KEY=YOUR_OPENAI_API_KEY