1.3 KiB
1.3 KiB
n8n integration
Role
n8n orchestrates secondary cross-system work after MobilityOps commits canonical state. It is not the domain engine.
Required live workflow: return processing
Input: vehicle.returned.v1 webhook event.
Steps:
- validate event type and schema;
- derive a follow-up category from the already-calculated state;
- call the narrow MobilityOps callback endpoint with event ID and follow-up summary;
- return a stable workflow result;
- on errors, fail visibly so the outbox dispatcher can retry.
The starter export is n8n/mobilityops-return-processing.json. Claude may correct its credentials and callback route but must preserve idempotency.
Optional second workflow: knowledge sync
Input: manual trigger or manifest-changed event.
Steps:
- read the fixed knowledge manifest;
- call RAGcore ingestion/sync API;
- record per-document results through MobilityOps integration status API.
This workflow is useful but must not delay the core demo if RAGcore's final API is not ready.
Outbox dispatcher
- polls pending records;
- claims with
FOR UPDATE SKIP LOCKEDor equivalent; - sends event with timeout;
- exponential backoff with a small maximum attempt count;
- supports explicit manual retry;
- preserves last error and response metadata;
- does not hold a database transaction open during network I/O.