Skip to content
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

feat: Twitter integration #110

Open
1 task
marieaurore123 opened this issue Nov 14, 2024 · 2 comments
Open
1 task

feat: Twitter integration #110

marieaurore123 opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
plugin Integration of third party tool or service (Discord, Twitter, ..)
Milestone

Comments

@marieaurore123
Copy link
Contributor

marieaurore123 commented Nov 14, 2024

  • I have looked for existing issues (including closed) about this

Feature Request

Add a Twitter integration crate to easily create Twitter bots from Rig Agents.

Motivation

One of the main use cases of LLMs is to create special purpose chatbots. Although Rig currently provides the building blocks necessary to create chatbots with custom sources of context and tools, Rig is limited in it's support for the deployment of these chatbots.

Proposal

Create a new companion crate rig-twitter which provides a generic discord bot struct TwitterBot<T: Chat> (name not final). The struct should work for any type that implements the Chat trait defined in rig-core, thus providing an out-of-the-box way for developers to deploy their custom Rig Agents as Twitter bots.

Inspiration / reference

rig-core/cli_chatbot

Important note: cannot use twitter webhooks because you need Enterprise plan which costs $52,000 / month!
See plans. See more details.
See api v2.

With free plan:

  • 500 writes/month
  • 100 reads/month

With basic plan ($175/month):

  • 50,000 writes/month
  • 15,000 reads/month

So we would need to create a infinite read loop that checks for unread posts --> ingest into our system --> call Rig agent --> post response, ie. not serverless

@marieaurore123 marieaurore123 self-assigned this Nov 14, 2024
@cvauclair
Copy link
Contributor

@garance-buricatu webhooks should be supported since people who are on the Twitter API enterprise plan might want to use Rig!

@marieaurore123
Copy link
Contributor Author

@garance-buricatu webhooks should be supported since people who are on the Twitter API enterprise plan might want to use Rig!

@cvauclair We'll have to find a way to test the webhook integration somehow before we can make it a feature

@mateobelanger mateobelanger added this to the v0.6 milestone Dec 5, 2024
@mateobelanger mateobelanger added the plugin Integration of third party tool or service (Discord, Twitter, ..) label Dec 5, 2024
@cvauclair cvauclair modified the milestones: v0.6, v0.7 Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin Integration of third party tool or service (Discord, Twitter, ..)
Projects
None yet
Development

No branches or pull requests

3 participants