$ cd cold-email
$ npm install
$ npm run build
This will generate the manifest.json
at the cold-email/build
folder
- set your Chrome browser 'Developer mode' up
- click 'Load unpacked', and select
cold-email/build
folder
- At
r_jina_ai.ts
, we fetch fromhttps://r.jina.ai/
, which takes a given URL and returns it's content in a nice format friendly to LLMs - At
gemini.ts
, we send a prompt to Google Gemini's API to write a cold-email for us, alongside the page's content
The rest of the action happens in the SidePanel.tsx and .css. There isn't much in the other project files
We could do TWO requests to Gemini. One sending the content of the webpage and asking it to remove the irrelevant content, and then the one for actual email text generation - I chose not to simply because it would take even longer to generate the email. But it is an idea