Get your API key

Lesson 6 of 6

Put AI inside n8n with AllModelAPI

Build form → AI summary → Google Sheet using an OpenAI-compatible model node.

8 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will have a live form whose answers an AI model sorts and summarises, with each result saved as a new row in a Google Sheet, on a key with a spending cap.

You need: n8n with Google Sheets connected (from the last lesson), an AllModelAPI account and a Google Sheet for the results · Time: 8 minutes

  1. A small electronics shop gets enquiries all day: "Do you have a 1.5 ton inverter AC?", "My fan stopped working after 2 weeks", "Can you give a GST bill?". We'll build:

    Form Trigger (customer fills a form) → AI step (picks a category and writes a one-line summary) → Google Sheets (adds a row).

    Three n8n nodes joined by arrows: Form Trigger (Name, City, Message), Basic LLM Chain and Google Sheets (append a row). Under the chain hangs an OpenAI Chat Model using the AllModelAPI credential. A bar at the bottom says Base URL https://api.allmodelapi.com/v1, own key, 2 dollar limit.
    The AI step is a chain with a chat model plugged in underneath. The model talks to AllModelAPI.

    Create a sheet called Enquiries with these headers in row 1: Date | Name | City | Message | Category | Summary

    Why?

    The AI does the boring reading and sorting, but a person still reads the sheet and replies. That is a safe first job for AI in a workflow: it suggests, a human decides.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Make a separate key with a spend limit
  2. Add AllModelAPI as an OpenAI credential
  3. Build the form and the AI step
  4. Save the result to Google Sheets
  5. Plan B: the HTTP Request node
  6. Test, publish and watch the cost
  7. Recap