Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.29 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.29 KB

mastodon-gpt

Overview

mastodon-gpt is an open source serverless conversational chatbot that checks every X minutes to see if it was mentioned on Mastodon. When the AWS Lambda function detects a mention, it uses an OpenAI language model to generate a response based on the context of the mention (and the prior message if it exists) and then posts the response back to Mastodon as a reply.

The first deployed instance of this bot is @[email protected].

Each mention (along with the prior message if present) is checked against the OpenAI Moderations endpoint. If the bot is asked to reply to content that fails any moderation check by OpenAI, then the bot will simply ignore the mention.
 

External Dependency Map

External Dependencies
 

Deployment

Infrastructure is deployed to AWS via Terraform from the ./terraform folder. The ./terraform/01-bootstrap layer must be applied first. See each layer's folder for deployment and config details.


 

AWS infrastructure layout

Infrastructure Overview