Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Image, Video & Audio

Image, Video & Audio

Create spaced-repetition LINE book quizzes with Claude Sonnet 5

When an API call/webhook arrives, it creates or processes media with Claude using Data Table.

What it does

## LINE Book Page Quiz Bot with Spaced Review Send a photo of a book page to a LINE bot. Claude writes multiple-choice questions from it, and missed questions come back for review every morning. ### Who's it for Self-learners who study from books and want quizzes with spaced repetition. ### How it works 1. Send a page photo to the bot. 2. Claude transcribes it and writes 4-choice questions; a code check rejects bad ones. 3. The first question arrives as a LINE card. Tap a choice to get the result and an explanation. 4. Each answer updates a streak that sets the next review date. 5. Every morning, due questions are sent as a carousel. ### Setup 1. Credentials: Anthropic key in claude; LINE Header Auth (Authorization: Bearer YOUR_TOKEN) in the HTTP Request nodes. 2. Create two Data Tables and re-select them in the Data Table nodes: - quiz_questions: question_id, page_id, user_id, question_text, choice_a to choice_d, answer_index (number), explanation, evidence, tags - quiz_progress: question_id, user_id, page_id, tags, streak, correct_count, wrong_count (numbers), last_result, last_answered_date, next_review_date 3. Publish, then paste the Production URL of recv_LINE_msg (ends with /webhook/line-quiz) into the LINE Developers Console as the Webhook URL. 4. Edit settings for question count and review rules. Set the review time in daily_schedule. ### Notes The quiz language follows the page (Japanese or English). Dates use Japan time (UTC+9).

The steps

  1. claude
  2. output_parser
  3. split_events
  4. get_image
  5. reply
  6. is_image
  7. recv_LINE_msg
  8. quality_check
  9. is_valid
  10. insert_questions
  11. format_questions
  12. create_card
  13. push_question
  14. parse_postback

37 steps in total.

Similar automations