Skip to content

Commit fd7a384

Browse files
committed
fix: market research agent readme added
1 parent 38635b0 commit fd7a384

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

js/examples/market_research_agent/demo.mjs

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ dotenv.config();
2929
console.log("Tools:", tools);
3030
//console.log("Prompt:", prompt);
3131

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

3745
// Check combined_prompt
3846

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Market Research Agent
2+
3+
This project is a Market Research Agent built using Composio to assist in researching market trends based on user input.
4+
5+
## Installation
6+
7+
1. Clone the repository and navigate to this folder:
8+
```bash
9+
git clone https://github.com/composioHQ/composio.git
10+
cd composio/js/examples/market_research_agent
11+
```
12+
13+
2. Install dependencies:
14+
```bash
15+
pnpm install @langchain @langchain/openai composio-core express
16+
```
17+
18+
## Usage
19+
20+
1. Navigate to the project directory:
21+
22+
```bash
23+
cd path/to/your/project
24+
```
25+
26+
2. Add your environment variables in a `.env` file. Make sure to include the necessary API keys, such as `COMPOSIO_API_KEY` and `OPENAI_API_KEY`.
27+
28+
3. Execute the application:
29+
30+
```bash
31+
node demo.mjs
32+
```
33+
34+
## Customization
35+
36+
You can customize the domain of market research agent by modifying the `domain` variable in the `demo.mjs` file.

0 commit comments

Comments
 (0)