Templates / Give sourced Chatwork opinions with Claude Haiku when mentioned

Give sourced Chatwork opinions with Claude Haiku when mentioned

Ready for 3.0

by 久保田 卓磨 ✓ · 0 views · created 2026-11-06 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs on a schedule (every minute) (plus 1 other trigger). Along the way it connects Anthropic Chat Model. It also calls api.chatwork.com over HTTP.

How it runs

Trigger: On a schedule (every minute) (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 5 fields: room_id, context_size, max_age_minutes…
  2. Read the bot account (HTTP Request): calls api.chatwork.com
  3. Read room messages (HTTP Request): calls an HTTP API
  4. Read answered mentions (Data table): get (row)
  5. Find new mentions (Code): runs custom JavaScript code
  6. Topic written? (If): checks a condition and branches into true / false
  7. Ask Claude for an opinion (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Haiku 5.
  8. Ask back (Code): runs custom JavaScript code
  9. Check sources and build the reply (Code): runs custom JavaScript code
  10. Reply in Chatwork (HTTP Request): calls an HTTP API (POST)

…plus 1 more step. See the full node list below.

Services it uses

Anthropic Chat Model

HTTP calls to: api.chatwork.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This workflow polls a Chatwork room every minute, detects new mentions of a bot account, and uses Anthropic Claude to generate an opinion based on recent context, citing linked source messages, then replies in Chatwork and logs handled mentions…

Excerpt from 久保田 卓磨's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.