Comprehensive Onfleet API Automation Toolset for AI Agents - n8n Workflow

Leverage this expansive n8n workflow template to grant your AI agent seamless control over 37 distinct Onfleet operations, managing everything from tasks and workers to administration, using the specialized n8n node structure.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

AI Agent Developers: Those looking to equip their n8n-based AI agents with robust, pre-built logistic capabilities.
Logistics Automation Specialists: Users needing comprehensive, programmatic control over the Onfleet delivery platform.
n8n Power Users: Individuals seeking powerful n8n templates that showcase extensive tool registration for machine comprehension programs (MCP).
Businesses using Onfleet: Organizations aiming to automate complex administrative and operational tasks without writing extensive custom code.

Overview

This specialized n8n workflow acts as a Master Control Program (MCP) server, integrating 37 distinct Onfleet operations into a single, cohesive AI Tool library. Utilizing the unique mcpTrigger as its core n8n trigger, this setup allows sophisticated AI agents—such as those built using n8n's Langchain features—to seamlessly manage workers, tasks, teams, destinations, and more. This saves developers significant time by providing a complete set of callable functions right out of the box. Every function is represented by a dedicated Onfleet Tool n8n node, ensuring high reliability and modularity within the overall n8n workflow.

How it Works

The core of this powerful n8n workflow is the Onfleet Tool MCP Server n8n trigger, a specialized node designed for AI interaction.


  1. AI Instruction: An external AI Agent (often driven by a Large Language Model) sends a request to the mcpTrigger based on a determined goal (e.g., 'Create a new worker' or 'Get time estimates for Team Alpha').

  2. Tool Registration: The mcpTrigger node is implicitly connected to 37 different Onfleet operations. When the n8n workflow is activated, these operations are registered as callable tools available to the AI.

  3. Operation Routing: Based on the AI's instruction and the parameters provided, the mcpTrigger routes the request to the correct corresponding n8n node (an instance of the Onfleet Tool).

  4. Onfleet Execution: The selected Onfleet Tool n8n node executes the specific API call (e.g., Create a team, Update a task, Delete an admin).

  5. Result Return: The result of the Onfleet API call is returned back to the mcpTrigger, which forwards the structured data back to the originating AI agent, completing the automated cycle. This robust structure makes this one of the most comprehensive n8n templates for logistics automation.

Installation Guide

To utilize this extensive n8n workflow template, follow these steps:


  1. Import the JSON: Copy the provided JSON code and navigate to your n8n instance. Go to 'Workflows' and use the 'New' button, selecting 'Import from JSON'.

  2. Set Onfleet Credentials: All 37 Onfleet Tool n8n node instances require an established Onfleet credential. Before running the workflow, ensure you have configured your Onfleet API Key connection in n8n's Credentials section.

  3. Activate the MCP Trigger: The Onfleet Tool MCP Server is a specific n8n trigger. While it doesn't need to be webhook-activated in the traditional sense, the entire n8n workflow must be set to 'Active' so that the tools become available for AI orchestration projects.

  4. Integrate with AI Agent: Reference this MCP Server within your AI Agent configuration. The agent will recognize the 37 available tools (n8n node functions) exposed by this powerful n8n workflow.

Node Details

Onfleet Tool MCP Server (n8n Trigger): This specialized n8n trigger is the entry point for AI commands. It waits for instructions from an AI agent and serves as the tool registry point, connecting all 37 underlying Onfleet operations.
Create an Admin / Delete an Admin / Update an Admin (Onfleet Tool n8n node): Essential operations for user management within the Onfleet system.
Create a Task / Update a Task / Complete a Task (Onfleet Tool n8n node): Core functionality for task (delivery) lifecycle management. The n8n workflow enables creation, modification, and finalization of tasks.
Create a Worker / Delete a Worker / Update a Worker (Onfleet Tool n8n node): Allows the AI agent to manage the delivery personnel, including scheduling and tracking their details.
Auto-dispatch a team (Onfleet Tool n8n node): A high-value function exposed by this n8n workflow, enabling automatic assignment of tasks to teams based on Onfleet's dispatching logic.
Get my organization / Get many teams (Onfleet Tool n8n node): Retrieve high-level organizational data and lists of operational teams, providing necessary context back to the AI agent. This powerful n8n template includes numerous read and write actions, maximizing automation potential.

Related n8n Workflows

Paid

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

Featured*