Decision Model Agent Tool Gate
Let an agent call a Decision Model as a tool to decide whether a live GitHub status lookup is needed, then fetch only when the answer is yes.
The full canvas, before you import it
Click any node to see its config.
Click a node to select it — same as the Heym editor; the panel shows its settings.
5 nodes · Free & source-available
Decision Model Agent Tool Gate
"Is GitHub Actions down right now?" needs fresh service data. "What is GitHub Actions?" usually does not. This template gives an agent a Decision Model as a callable tool so it can make that distinction before reaching for an HTTP tool.
What this workflow does
- UserQuestion supplies a question about GitHub or GitHub Actions.
- StatusAssistant calls the Check Lookup Needed Decision node through its tool connection, passing the full question in the agent-provided
statefield. - The Decision Model answers the Noul question
needs_live_lookupwith a yes probability. - At 0.8 or above, the agent calls Fetch GitHub Status, a fixed HTTP tool for GitHub's public status summary. Below 0.8, it skips the HTTP call.
- The agent reports the yes/no decision, its probability, whether it fetched live data, and the answer.
Both the Decision and HTTP nodes connect to the agent's bottom tool handle. They are not steps in the main execution path. The agent invokes them during its tool loop and receives their outputs as tool results.
Setup
Select a tool-capable LLM credential on StatusAssistant and a Decision Model credential on Check Lookup Needed. The HTTP status endpoint needs no credential. The agent can supply the Decision node's state, but the question, rubric, model, and credential remain fixed. The HTTP tool has no agent-provided fields, so the agent cannot change its URL.
Try yes and no
- Yes: "Is GitHub Actions experiencing an outage right now?"
- No: "Explain the difference between Git and GitHub."
- No: "Write a short introduction to GitHub Actions workflows."
Inspect the Agent trace to see check_lookup_needed followed by fetch_github_status for the yes path. The no path should contain the decision call without an HTTP call. Exact probabilities vary by model.
Handling uncertainty
If the tool errors or returns no probability, the agent reports that the check failed and does not claim current service status. Below the threshold, a question that still needs live information gets an explicit "not verified" response instead of an invented current status.
This is an agent-directed tool selection example. The yes/no threshold is enforced by the agent's instructions, not by a hard backend permission boundary. For consequential actions, put a Condition node in the main workflow before the action. Here the optional action only reads a public service-status endpoint.
How to import this template
- 1Click Import → Copy JSON on this page.
- 2Open your Heym and navigate to a workflow canvas.
- 3PressCmd+V/Ctrl+V— nodes appear instantly.
- 4Add your API keys in the node config panels and click Run.
Discover more automations
- AI AgentsBatch LLM Status TrackerSend an array through the OpenAI Batch API, branch on live status updates, and collect the final per-item results.
- AI AgentsBuild Your First AI AgentA beginner-friendly interactive AI agent with conversation memory — type a message and get context-aware replies.
- AI AgentsBlind Eval TrioThree cross-lab agents evaluate any decision blind: steelman defends, stress_test attacks, gap_finder finds what's missing. No synthesizer — you integrate.
- AI AgentsAI Research Brief Supabase ArchiveTurn research notes into a structured AI brief and save the finished Markdown in Supabase.
- AI AgentsAnime Multi-Source Research BriefBuild a spoiler-aware anime research brief from Jikan profile, character, and review endpoints with deliberate rate-limit waits.
- AI AgentsDecision Model Smart Model RouterMatch each request to a fast, coding, or reasoning model with a Decision Model, then execute only the selected LLM branch and return its answer.
- AI AgentsRAG Knowledge Base Poisoning SentinelReview newly ingested knowledge chunks for instruction injection, provenance gaps, and suspicious content before retrieval.
- Dev & IT OpsHTML Status PageCheck an upstream service and answer a browser GET with a rendered status page instead of JSON.
- Dev & IT OpsWorkflow Change Audit LogCapture every workflow create, update, and delete on your Heym instance and post a batched summary to Slack.
- Customer SupportHITL Support Reply AgentDraft a customer-facing support response, pause for human approval, then continue with the reviewed reply.
- Dev & IT OpsCodex PR Fix AgentSend a coding task to Codex, open a draft PR when it succeeds, and notify Slack when Codex needs follow-up input.
- Dev & IT OpsOpenCode Go PR Fix AgentSend a coding task to OpenCode Go, open a review-ready pull request, and return the implementation result.