---
contentType: overview
title: Advanced AI examples and concepts
description: Example workflows and use cases for building AI functionality using n8n.
hide:
- toc
---
# Advanced AI examples and concepts
This section provides explanations of important AI concepts, and workflow templates that highlight those concepts, with explanations and configuration guides. The examples cover common use cases and highlight different features of advanced AI in n8n.
- __Agents and chains__
Learn about [agents](/08-0-0-Workflow/glossary.rst#ai-agent) and [chains](/08-0-0-Workflow/glossary.rst#ai-chain) in AI, including exploring key differences using the example workflow.
[:octicons-arrow-right-24: What's a chain in AI?](/08-0-0-Workflow/advanced-ai/examples/understand-chains.md)
[:octicons-arrow-right-24: What's an agent in AI?](/08-0-0-Workflow/advanced-ai/examples/understand-agents.md)
[:octicons-arrow-right-24: Demonstration of key differences between agents and chains](/08-0-0-Workflow/advanced-ai/examples/agent-chain-comparison.md)
- __Call n8n Workflow Tool__
Learn about [tools](/08-0-0-Workflow/glossary.rst#ai-tool) in AI, then explore examples that use n8n workflows as custom tools to give your AI workflow access to more data.
[:octicons-arrow-right-24: What's a tool in AI?](/08-0-0-Workflow/advanced-ai/examples/understand-tools.md)
[:octicons-arrow-right-24: Chat with Google Sheets](/08-0-0-Workflow/advanced-ai/examples/data-google-sheets.md)
[:octicons-arrow-right-24: Call an API to fetch data](/08-0-0-Workflow/advanced-ai/examples/api-workflow-tool.md)
[:octicons-arrow-right-24: Set up a human fallback](/08-0-0-Workflow/advanced-ai/examples/human-fallback.md)
[:octicons-arrow-right-24: Let AI specify tool parameters with `$fromAI()`](/08-0-0-Workflow/advanced-ai/examples/using-the-fromai-function.md)
- __Vector databases__
Learn about [vector databases](/08-0-0-Workflow/glossary.rst#ai-vector-store) in AI, along with related concepts including [embeddings](/08-0-0-Workflow/glossary.rst#ai-embedding) and retrievers.
[:octicons-arrow-right-24: What's a vector database?](/08-0-0-Workflow/advanced-ai/examples/understand-vector-databases.md)
[:octicons-arrow-right-24: Populate a Pinecone vector database from a website](/08-0-0-Workflow/advanced-ai/examples/vector-store-website.md)
- __Memory__
Learn about [memory](/08-0-0-Workflow/glossary.rst#ai-memory) in AI.
[:octicons-arrow-right-24: What's memory in AI?](/08-0-0-Workflow/advanced-ai/examples/understand-memory.md)
- __AI workflow templates__
You can browse AI templates, included community contributions, on the n8n website.
[:octicons-arrow-right-24: Browse all AI templates](https://n8n.io/workflows/?categories=25)