Build a Pizza Ordering Chatbot with n8n Langchain Nodes

Solve customer pizza ordering confusion and delays by automating the chat process with n8n’s Langchain nodes. This workflow handles orders, menu queries, and status updates seamlessly in one chatbot solution.
chatTrigger
agent
toolHttpRequest
+3
Workflow Identifier: 1602
NODES in Use: toolCalculator, lmChatOpenAi, memoryBufferWindow, toolHttpRequest, chatTrigger, agent
Automate pizza orders with n8n and Langchain

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow creates a chatbot named “Pizzaro” that helps customers order pizzas by chat.
It solves the problem of manual and slow chat handling in busy pizza shops.
The chatbot answers menu questions, takes orders, and gives order status updates automatically.
Here, the chatbot uses AI to understand messages and talk naturally with customers, saving time and reducing errors.


Who Should Use This Workflow

This automation is for pizza shop managers or teams who get many chat orders and questions daily.
It helps staff stop juggling chats manually and avoid order mistakes.
If customers ask about menus, place orders, or check status through chat, this workflow can handle all that without delays.


Tools and Services Used

  • Chat Trigger node: To receive customer chat messages in real time.
  • Window Buffer Memory node: To keep conversation history for smooth replies.
  • HTTP Request nodes: Three nodes to get pizza menus, submit orders, and check order status using backend APIs.
  • AI Agent node: Acts as the brain to decide user intent and choose the right action.
  • Calculator node: Calculates totals like prices and quantities.
  • Chat OpenAI node: Produces human-like chat answers using OpenAI’s language model.

Inputs, Processing Steps, and Outputs

Inputs

  • Incoming customer chat messages with questions or orders.
  • Access to pizza menu and order status APIs.
  • OpenAI API key for generating replies.

Processing Steps

  • The Chat Trigger node receives chat messages from customers.
  • The Window Buffer Memory stores recent conversation to keep context.
  • The AI Agent analyzes the message to understand if the user wants the menu, to order, or check status.
  • Depending on intent, the AI Agent calls:
    • Get Products (HTTP GET) node to fetch the current pizza menu.
    • Order Product (HTTP POST) node to send the order details.
    • Get Order (HTTP GET) node to get order status.
  • The Calculator node is used to compute total prices or quantities if needed.
  • The Chat OpenAI node generates clear and polite replies to send back to the customer.

Outputs

  • Quick, accurate chat replies about menu items.
  • Order confirmations with details and thanks.
  • Live updates on order status showing pizza type and quantity.
  • Reduced manual work and errors for the pizza team.

Beginner Step-by-Step: How to Use This Workflow in n8n Production

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor where you want to run the chatbot.
  3. Choose “Import from File” and select the downloaded workflow file.

Step 2: Configure Credentials and Settings

  1. Set your OpenAI API key in the Chat OpenAI node credentials section.
  2. Update URLs or IDs if needed in the HTTP Request nodes (Get Products, Order Product, and Get Order) to match your pizza shop’s backend API.
  3. Check the Chat Trigger node has the webhook URL public so it receives messages from customers.
  4. Review the initial greeting text if you want to add your own welcome message.

Step 3: Test the Workflow

  1. Send a sample chat message to the webhook URL such as “What pizzas do you have?” and see if it replies with the menu.
  2. Try placing a test order message like “I want 2 Margherita pizzas, name is Sarah.” and check confirmation.
  3. Ask for “Order status for Sarah” and verify order updates are sent back.

Step 4: Activate the Workflow

  1. After successful testing, activate the workflow by toggling it ON in the n8n editor.
  2. Confirm the chatbot is live and responds to customer chats continuously.

If using self hosting n8n, ensure the server stays online and reachable to keep customer chats flowing.


Customization Ideas

  • Change the welcome message in the Chat Trigger node to fit your brand voice.
  • Update the backend API that provides pizza menu data to add or remove items without changing the workflow.
  • Edit the AI Agent’s prompt to change how order confirmations sound.
  • Add tax, discounts, or delivery fees calculations using the Calculator node.
  • Extend the chatbot to answer questions in multiple languages by changing the Chat OpenAI node prompt.

Automate pizza orders with n8n and Langchain

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Set the webhook in the Chat Trigger node to public and confirm the webhook URL is correct.
Using an invalid or missing API key in the Chat OpenAI node causes OpenAI API errors.
The HTTP POST in the Order Product node might be misconfigured or the backend API could be down.
Yes, but performance depends on the n8n hosting setup; self-hosted n8n can be scaled accordingly.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.