n8n is an open-source visual workflow automation platform that allows users to design logic for AI agents by connecting nodes on a graph. The system is event-driven, with workflows initiated by triggers such as webhooks, cron schedules, or manual activation.

The platform supports self-hosting via Docker, which simplifies deployment by packaging the application and its dependencies. Data persistence is managed through volume mapping, ensuring that configurations and credentials remain intact during container updates.

Integration with AI models and external services like Google Sheets is handled through a dedicated credentials management system. Users can connect various LLM providers, including OpenAI, or use gateways like BotHub to access multiple models via a single API key.

The platform incorporates LangChain concepts, enabling the creation of complex agentic pipelines. These agents can utilize tools such as database queries and vector stores, like Supabase, to perform multi-step tasks and implement RAG (Retrieval-Augmented Generation) workflows.

Workflows in n8n are serialized as JSON objects, consisting of nodes and connections. The system supports JavaScript-based expressions for data transformation and provides built-in mechanisms for error handling, including specific nodes for managing failures and logging.