n8n-nodes-vh3ai 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +78 -55
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,7 +23,7 @@ n8n-nodes-vh3ai
23
23
 
24
24
  ### n8n Cloud
25
25
 
26
- Search for **VH3 AI** in the nodes panel (verified nodes only).
26
+ Search for **VH3 AI** in the community nodes section.
27
27
 
28
28
  ### Manual / Development
29
29
 
@@ -46,67 +46,72 @@ n8n start
46
46
 
47
47
  Both nodes use the **VH3 AI API** credential type:
48
48
 
49
- | Field | Description | Default |
50
- | ------------ | ----------------------------------------------------- | -------------------------------------------- |
51
- | API Key | Your VH3 API key (issued by VH3 AI) | — |
52
- | Company ID | Your tenant / company ID | — |
53
- | Base URL | VH3 Connect gateway URL | `https://api.vh3connect.io` |
54
- | FSI Base URL | VH3 Field Service Intelligence API (Xano proxy) | `https://api.vh3connect.io/api:kP8T1CK7` |
49
+
50
+ | Field | Description | Default |
51
+ | ------------ | ----------------------------------- | ---------------------------------------- |
52
+ | API Key | Your VH3 API key (issued by VH3 AI) | — |
53
+ | Company ID | Your tenant / company ID | — |
54
+ | Base URL | VH3 Connect gateway URL | `https://api.vh3connect.io` |
55
+ | FSI Base URL | VH3 Field Service Intelligence API | `https://api.vh3connect.io/api:kP8T1CK7` |
56
+
55
57
 
56
58
  - **VH3 AI**: authenticates via `X-API-KEY` header on every request.
57
- - **VH3 AI PRO**: injects `company_id` and `api_key` into the body or query string (no header auth). The Xano proxy validates server-side.
59
+ - **VH3 AI PRO**: injects `company_id` and `api_key` into the body or query string (no header auth). VH3 AI validates server-side.
58
60
 
59
61
  ---
60
62
 
61
63
  ## VH3 AI — Resources & Operations
62
64
 
63
- | Resource | Operations |
64
- | --- | --- |
65
- | **Job** | List Jobs · Get Job · Get Job by ID · Create Job · Edit Job · Cancel Job · Schedule Job · Start Job · Set Job Result · List Job Status History · Create / Delete / List Job Constraints · Create / List Job Stock |
66
- | **Contact** | List Contacts · Get Contact · Create / Edit Contact · Stop / Unstop Contact · List Contact Groups · Get / Create / Update Contact Group |
67
- | **Resource (Engineer)** | List Resources · Get Resource · Create / Update Resource · List Resource Groups · Get Resource Group |
68
- | **Vehicle** | List Vehicles · Get / Create / Update Vehicle |
69
- | **Worksheet** | List Worksheet Definitions · Get Worksheet · Get Worksheet Questions · List Worksheet Answers |
70
- | **Worksheet Group** | List · Get |
71
- | **Invoice** | List Invoices · Get Invoice · Create / Edit Invoice · Cancel Invoice · Mark Invoice Sent / Paid · List Invoice Line Items · Create / Delete Invoice Line Item |
72
- | **Quote** | List Quotes · Get Quote · Create / Edit Quote · Mark Quote Sent / Accepted / Rejected · List Quote Line Items · Get / Create / Edit / Delete Quote Line Item |
73
- | **Note** | List Notes · Get Note · Create / Edit Note · Create Progress Update · List Note Types |
74
- | **Person** | List Persons · Get Person · Create / Edit Person |
75
- | **Job Group** | List Job Groups · Get Job Group · Create / Edit Job Group · Mark Complete · Mark Financially Complete · List Status History |
76
- | **Stock** | List Product Categories · List / Get / Create / Update Stock Details · List / Get / Create / Update Stock Item · List Stock Movements · List Stock Suppliers |
77
- | **Reference Data** | List Department Codes · List Nominal Codes |
78
65
 
79
- ### Simplify switch
66
+ | Resource | Operations |
67
+ | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
68
+ | **Job** | List Jobs · Get Job · Get Job by ID · Create Job · Edit Job · Cancel Job · Schedule Job · Start Job · Set Job Result · List Job Status History · Create / Delete / List Job Constraints · Create / List Job Stock |
69
+ | **Contact** | List Contacts · Get Contact · Create / Edit Contact · Stop / Unstop Contact · List Contact Groups · Get / Create / Update Contact Group |
70
+ | **Resource (Engineer)** | List Resources · Get Resource · Create / Update Resource · List Resource Groups · Get Resource Group |
71
+ | **Vehicle** | List Vehicles · Get / Create / Update Vehicle |
72
+ | **Worksheet** | List Worksheet Definitions · Get Worksheet · Get Worksheet Questions · List Worksheet Answers |
73
+ | **Worksheet Group** | List · Get |
74
+ | **Invoice** | List Invoices · Get Invoice · Create / Edit Invoice · Cancel Invoice · Mark Invoice Sent / Paid · List Invoice Line Items · Get Invoice Line Item · Create / Delete Invoice Line Item |
75
+ | **Quote** | List Quotes · Get Quote · Create / Edit Quote · Mark Quote Sent / Accepted / Rejected · List Quote Line Items · Get / Create / Edit / Delete Quote Line Item |
76
+ | **Note** | List Notes · Get Note · Create / Edit Note · Create Progress Update · List Note Types · Get Note Type |
77
+ | **Person** | List Persons · Get Person · Create / Edit Person · List Consent History |
78
+ | **Job Group** | List Job Groups · Get Job Group · Create / Edit Job Group · Mark Complete · Mark Financially Complete · List Status History |
79
+ | **Stock** | List Product Categories · Get Product Category · List / Get / Create / Update Stock Details · List / Get / Create / Update Stock Item · List Stock Movements · List Stock Suppliers · Get Stock Supplier |
80
+ | **Reference Data** | List Department Codes · Get Department Code · List Nominal Codes · Get Nominal Code |
81
+
82
+
83
+ ### Simplify switch — LLM-friendly for cost-saving and efficiency
80
84
 
81
- Operations whose API endpoints support server-side response compaction expose a top-level **Simplify** boolean (Gmail-style, default ON). When ON, the node sends `compact=true` and the API returns LLM-optimised payloads (empty values stripped, nested structures flattened).
85
+ Every read operation across all 14 resources exposes a top-level **Simplify** boolean (Gmail-style). When ON, the node sends `compact=true` and the API returns LLM-optimised payloads (empty values stripped, nested structures flattened, custom fields collapsed to a key→value dict). As of 0.6.x, ~50 list/get endpoints across Jobs, Contacts, Resources, Vehicles, Worksheets, Worksheet Groups, Invoices, Quotes, Notes, Persons, Job Groups, Job Types, Stock, and Reference Data all support it.
82
86
 
83
- Currently surfaced on:
87
+ Default is OFF on most operations (preserve raw envelope for backward compatibility); ON for the agent-heavy ones (List Jobs, Get Job by ID, List Contacts, Get Contact). Always pass `Simplify=true` when wiring this node up as an AI tool — payloads can otherwise be 5–10× larger than they need to be.
84
88
 
85
- - **Job** → List Jobs, Get Job by ID
86
- - **Contact** → List Contacts, Get Contact
89
+ ### List Invoices / List Quotes — automatic 12-month fallback
87
90
 
88
- Coverage will expand as the API team enables `compact` on more endpoints — see [`docs/vh3-compact-backlog.md`](docs/vh3-compact-backlog.md) for the backlog.
91
+ BigChange's `/v1/finance/invoices` and `/v1/quotes` endpoints reject requests with no filter or date range (HTTP 422). When the caller hasn't supplied any filter (`id`/`jobId`/`jobGroupId`/`contactId`/`reference`) and no `createdAtFrom`/`createdAtTo`, the node automatically scopes the query to the last 12 months ending now. Explicit values still take precedence — this only kicks in when nothing is set, so existing workflows are unaffected.
89
92
 
90
93
  ---
91
94
 
92
95
  ## VH3 AI PRO — Resources & Operations
93
96
 
94
- | Resource | Operations |
95
- | --- | --- |
96
- | **Account Report** | Generate Account Report (monthly account review for a contact) |
97
- | **Agent** | Chat with Connie · Agent Search (NL search returning job objects) · Agent Ask (NL Q&A via the Weaviate Query Agent) |
98
- | **Briefing** | Generate Briefing (engineer pre-visit briefing and call script) |
99
- | **Cases** | Create / Get / Update / Search / List Cases · Transition Case (lifecycle status change) · Add Comment · List Activity · List / Add / Remove Case Items · Add / Remove Participants · List Cases for Item (reverse lookup by external item) |
100
- | **Connie** | Chat · Voice Chat · Generate Summary (contact summary) · Search History · List Sessions · Get Session Messages |
101
- | **Email** | Classify Email · Ingest Email · List Triage Categories |
102
- | **Intelligence** | List Profiles (with **Profiled Only** filter, default ON) · Get Profile · Generate Profiles |
103
- | **Investigate** | Run Investigation (multi-step hybrid investigation across vector + graph data) |
104
- | **Job Feed** | List Job Feed · Get Enriched Job · Aggregate Jobs (metrics with grouping, time-axis control, period-over-period comparison) |
105
- | **Pulse** | Get Pulse (cached business-health dashboard snapshot for the tenant) |
106
- | **Report** | Generate Report (now accepts a `sections` parameter to scope the output) · List Report Sections |
107
- | **Search** | Autocomplete · Search Outcomes · Search Intake · Search Intake (Basic) — non-enriched variant |
108
- | **Sentinel** | Run Sentinels (all or single by ID) · List Sentinel Registry · Get Latest Results |
109
- | **Weather** | Get Weather for Job · Get Weather for Site · Get Forecast · Get Historical |
97
+
98
+ | Resource | Operations |
99
+ | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
100
+ | **Account Report** | Generate Account Report (monthly account review for a contact) |
101
+ | **Agent** | Chat with Connie · Agent Search (NL search returning job objects) · Agent Ask (NL Q&A via the Weaviate Query Agent) |
102
+ | **Briefing** | Generate Briefing (engineer pre-visit briefing and call script) |
103
+ | **Cases** | Create / Get / Update / Search / List Cases · Transition Case (lifecycle status change) · Add Comment · List Activity · List / Add / Remove Case Items · Add / Remove Participants · List Cases for Item (reverse lookup by external item) |
104
+ | **Connie** | Chat · Voice Chat · Generate Summary (contact summary) · Search History · List Sessions · Get Session Messages |
105
+ | **Email** | Classify Email · Ingest Email · List Triage Categories |
106
+ | **Intelligence** | List Profiles (with **Profiled Only** filter, default ON) · Get Profile · Generate Profiles |
107
+ | **Investigate** | Run Investigation (multi-step hybrid investigation across vector + graph data) |
108
+ | **Job Feed** | List Job Feed · Get Enriched Job · Aggregate Jobs (metrics with grouping, time-axis control, period-over-period comparison) |
109
+ | **Pulse** | Get Pulse (cached business-health dashboard snapshot for the tenant) |
110
+ | **Report** | Generate Report (now accepts a `sections` parameter to scope the output) · List Report Sections |
111
+ | **Search** | Autocomplete · Search Outcomes · Search Intake · Search Intake (Basic) — non-enriched variant |
112
+ | **Sentinel** | Run Sentinels (all or single by ID) · List Sentinel Registry · Get Latest Results |
113
+ | **Weather** | Get Weather for Job · Get Weather for Site · Get Forecast · Get Historical |
114
+
110
115
 
111
116
  ### Agent operations
112
117
 
@@ -141,7 +146,7 @@ These three semantic search operations all support a **client-side date filter**
141
146
  - **Date From** / **Date To** — explicit ISO date bounds.
142
147
  - **Max Age (Months)** — convenience int (defaults to 6) that's equivalent to "Date From = now − N months". Ignored if Date From is also set.
143
148
 
144
- The filter looks at `actualStartAt` first, then falls back through `actualEndAt`, `createdAt`, `created_at`, `plannedStartAt`, `scheduledAt`, and nested `job.*` variants. Items that don't expose any timestamp are kept rather than silently dropped.
149
+ The filter looks at `actualStartAt` first, then falls back through `actualEndAt`, `createdAt`, `created_at`, `plannedStartAt`, `scheduledAt`, and nested `job.`* variants. Items that don't expose any timestamp are kept rather than silently dropped.
145
150
 
146
151
  ### Intelligence — Profiled Only
147
152
 
@@ -149,7 +154,7 @@ The filter looks at `actualStartAt` first, then falls back through `actualEndAt`
149
154
 
150
155
  ### Sentinels
151
156
 
152
- The **Sentinel** resource runs proactive, deterministic checks (no LLM cost) against your tenant. The full set of available sentinels is exposed via **List Sentinel Registry**; common ones include Engineer Performance Slip, FVF Rate Drop, Workload Imbalance, Site Deterioration, Repeat Failure Escalation, New Problem Site, SLA Breach Cluster, Customer Risk Escalation, Customer Non-Complete Anomaly, Scheduling Accuracy Drift, Carryover Accumulation, and Data Quality Alert. Run Sentinels accepts either `all` or a specific Sentinel ID.
157
+ The **Sentinel** resource runs proactive, deterministic checks (no LLM cost) against your VH3 AI plaform fee. The full set of available sentinels is exposed via **List Sentinel Registry**; common ones include Engineer Performance Slip, FVF Rate Drop, Workload Imbalance, Site Deterioration, Repeat Failure Escalation, New Problem Site, SLA Breach Cluster, Customer Risk Escalation, Customer Non-Complete Anomaly, Scheduling Accuracy Drift, Carryover Accumulation, and Data Quality Alert. Run Sentinels accepts either `all` or a specific Sentinel ID.
153
158
 
154
159
  ---
155
160
 
@@ -188,7 +193,23 @@ List operations expose a **Return All** toggle. When ON, the node walks every pa
188
193
 
189
194
  ### AI tool compatibility
190
195
 
191
- Both nodes set `usableAsTool: true` with rich operation descriptions, so they can be exposed to n8n AI agents. The Filter by Type (autocomplete), Profiled Only (intelligence), and Simplify (compact) toggles were designed with the agent path in mind — they let an LLM constrain a tool call instead of post-processing mixed or oversized payloads.
196
+ Both nodes set `usableAsTool: true`. n8n auto-generates a `*Tool` variant of each (the cube-icon entry in the node picker — **VH3 AI - BigChange API Tool** and **VH3 AI PRO Tool**) which implements the `supplyData()` interface that the LangChain agent calls.
197
+
198
+ When you wire one of these nodes as an `ai_tool` connection, **always pick the Tool variant** (or use type `n8n-nodes-vh3ai.vh3AiTool` / `n8n-nodes-vh3ai.vh3AiProTool` in workflow JSON). The bare regular node (`vh3Ai` / `vh3AiPro`) does not expose `supplyData` and the agent will throw at run time.
199
+
200
+ Operation descriptions, resource descriptions, and field hints across all 14 BC Proxy resources have been rewritten to be agent-grade: every operation states verb-first what it does, what IDs it requires (and where to source them), what it returns, when to pick it over a sibling op, and BigChange-specific gotchas. The Filter by Type (autocomplete), Profiled Only (intelligence), Simplify (compact), and 12-month fallback (invoices/quotes) toggles were all designed with the agent path in mind.
201
+
202
+ For tool-call ergonomics, mark agent-fillable parameters with the n8n `$fromAI(name, description, type)` expression — this is the runtime form of the "AI defined" toggle in the node UI. Avoid `type: 'json'` for optional fields: n8n's tool-input schema rejects empty strings for json-typed fields and some agents force-fill every declared parameter, which raises *"Value must be a non-empty object or a non-empty array"* at run time. Stick to `'string'` (which accepts empty strings) for optional filters; the node's truthy-checks will skip them.
203
+
204
+ ### Agent prompt companion
205
+
206
+ `docs/vh3ai-bigchange-tool-guide.md` ships with this package and is designed to be pasted directly into an AI agent's system message. It covers:
207
+
208
+ - A condensed mental model of the BigChange data graph (job ⇄ contact ⇄ resource ⇄ quote ⇄ invoice ⇄ worksheet ⇄ note).
209
+ - 9 operating rules (always resolve names → IDs first, simplify=true on every read, required date windows on List Jobs, etc.).
210
+ - A resource cheat sheet, a disambiguation guide ("if the agent is tempted to X, do Y"), and an exhaustive ID lookup map.
211
+ - The full enum of job statuses, constraint types, stock actions, and contact statuses.
212
+ - 4 worked end-to-end agent workflows (find jobs by customer, raise an invoice, reassign a job, summarise a job's worksheets).
192
213
 
193
214
  ---
194
215
 
@@ -196,22 +217,24 @@ Both nodes set `usableAsTool: true` with rich operation descriptions, so they ca
196
217
 
197
218
  VH3 operates n8n instances across two models:
198
219
 
199
- | Model | Description |
200
- |-------|-------------|
201
- | **Managed Hosting** | VH3 deploys and hosts the n8n instance at `{customer}.n8n.vh3.ai`. Custom Docker image with VH3 nodes baked in, automated provisioning, backups, and updates. |
202
- | **BYOI (Bring Your Own Instance)** | Customer runs their own n8n (self-hosted or n8n Cloud), installs `n8n-nodes-vh3ai` via Community Nodes, and gives VH3 an API key for workflow support. |
220
+
221
+ | Model | Description |
222
+ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
223
+ | **Managed Hosting by VH3 AI** | VH3 deploys and hosts the n8n instance at `{customer}.n8n.vh3.ai`. Custom Docker image with VH3 nodes baked in, automated provisioning, backups, and updates. |
224
+ | **BYOI (Bring Your Own Instance)** | Customer runs their own n8n (self-hosted or n8n Cloud), installs `n8n-nodes-vh3ai` via Community Nodes, and gives VH3 an API key for workflow support. |
225
+
203
226
 
204
227
  ---
205
228
 
206
229
  ## Compatibility
207
230
 
208
- - n8n version: 1.0+
231
+ - n8n version: 1.0+ (tested on 2.16.x; community-node tool usage requires n8n ≥ 1.62 with `usableAsTool` enabled)
209
232
  - Node.js: 18.10+
210
233
 
211
234
  ## Changelog
212
235
 
213
- See [`CHANGELOG.md`](CHANGELOG.md) for release history.
236
+ See `[CHANGELOG.md](CHANGELOG.md)` for release history.
214
237
 
215
238
  ## License
216
239
 
217
- MIT
240
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-vh3ai",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "n8n community node for the VH3 AI API — jobs, contacts, resources, vehicles, worksheets, invoices, quotes, and more.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",