Campfire Bots

Episode #444 by Teacher's Avatar David Kimura

Summary

In this episode, we explore the practical use of Campfire Bots for webhook applications. We'll start by setting up an AI Image Generator bot that interacts with our Ruby on Rails application, and then connect it to a self-hosted Large Language Model (LLM). Our initial goal is to get the system working. After that, we'll focus on refactoring the code to improve its safety and maintainability.
rails artificial intelligence background processing webhooks api 31:41

Chapters

  • Introduction (0:00)
  • Creating the Rails endpoint (2:03)
  • A long running task (5:07)
  • Thread.new (5:44)
  • Creating the background job (8:21)
  • Generating an AI Image (9:30)
  • How to setup and use the Image Generator AI (10:08)
  • Calling the AI API (12:09)
  • Testing out the Image Generator (17:46)
  • Refactoring the Background Job (18:10)
  • Final Thoughts (28:50)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams