Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daltonmcphaden/clumsy-kitten-bot
A bot leveraging LLMs and scheduled functions to regularly send an email apology from a clumsy kitten to their owner for breaking a household item, with the goal of generating laughs
https://github.com/daltonmcphaden/clumsy-kitten-bot
cohere netlify-scheduled-functions sendgrid
Last synced: about 2 months ago
JSON representation
A bot leveraging LLMs and scheduled functions to regularly send an email apology from a clumsy kitten to their owner for breaking a household item, with the goal of generating laughs
- Host: GitHub
- URL: https://github.com/daltonmcphaden/clumsy-kitten-bot
- Owner: daltonmcphaden
- Created: 2022-11-02T11:44:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T02:02:36.000Z (12 months ago)
- Last Synced: 2024-10-12T04:20:32.882Z (2 months ago)
- Topics: cohere, netlify-scheduled-functions, sendgrid
- Language: JavaScript
- Homepage:
- Size: 424 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clumsy-kitten-bot
This is a bot that regularly issues an apology from a clumsy kitten to their owner for breaking an item in the house while their owner was at work.
## Technologies
- Cohere Generate API (https://cohere.ai/generate): Given a prompt, uses LLMs to generates a response.
- Netlify Scheduled Functions (https://docs.netlify.com/functions/scheduled-functions/): Serverless function that can be run on a recurring basis. Essentially a wrapper for AWS Lambda that is scheduled like a cron job.
- Twilio SendGrid (https://sendgrid.com/): Email automation
## Prompt Engineering
Given a common household item, pretend to be a kitten apologizing to their owner for breaking something in the house.
Item: Lamp
Apology: Hi this is Ellie, sorry for breaking the lamp! Have a nice day, EllieItem: TV
Apology: Hey mom this is Ellie, I accidentally broke the TV! See you later, EllieItem: Curtains
Apology: Hey dad it's Ellie, I tried climbing the curtains and it didn't go so well... Oops! Hope you're having a good day, EllieItem: Fridge
Apology: { GENERATED RESPONSE }## Example Response Using Above Prompt
"Hi grandma! This is Ellie. I'm sorry for opening the fridge and putting my face in it. I don't know what came over me, hope you have a good day, Ellie"
"Hey mom, I accidentally scratched the fridge. Hope you have a nice day, Ellie"
"Hey dad, sorry for making you come home early, but I really broke the fridge, I think you should probably get home and see what happened! Bye, Ellie"
## Test Locally
To serve Netlify Scheduled Function locally: `netlify functions:serve`
## Next Steps
- Add people to mailing list, make more people laugh :)