jevfieldnotes
INTEGRATIONS

Add a Jev decision to n8n with HTTP Request

A node-by-node setup outline using the native API; no community package required.

2 MIN READ · UPDATED 20 SEP 2026

Configure the HTTP Request node

Set the method to POST and the URL to https://api.typesafe.ai/v1/systemone. Send JSON and set Content-Type to application/json. Configure an Authorization header through n8n credentials with the value Bearer followed by your TypeSafe key.

Try the fixed request body first

Paste the body below into the node’s JSON body field. It uses a fixed delivery message so you can inspect one response before adding expressions. Then replace state with the incoming message field using n8n’s expression editor.

Branch on the returned label

In a downstream Switch node, select the department choice from the response’s answers object. Check the actual node output: wrapping the response with headers or status changes its path. Configure shipping, billing and returns routes plus a fallback for unexpected output.

Handle request errors separately

An authentication error or timeout is not a shipping decision. Configure the node’s error behavior and test that the failure path stops or sends the item for review. The community node linked below offers another integration path if your n8n hosting allows it.

Code example

{
  "model": "jev-latest",
  "state": "My delivery is three days late. Can you help?",
  "questions": {
    "department": {
      "type": "choice",
      "instructions": "Which support team should handle this message?",
      "criteria": {
        "shipping": "Delivery status and tracking",
        "billing": "Invoices and payment problems",
        "returns": "Refunds and exchanges"
      }
    }
  }
}