New cohort: Agentic AI & LLM Engineering remote internship. Limited seats.Apply now
Lesson 10 of 21 20 minFree

Building Low-Code AI Applications

Build AI-powered apps and automations with little or no code using Power Platform, Copilot Studio and workflow tools, and know when to switch to code.

By the end of this lesson you will be able to:

  • Explain what low-code and no-code AI tools are, and who they are for.
  • Name the main building blocks: triggers, AI steps, actions and data.
  • Design an AI automation for a real school or business workflow.
  • Decide when low-code is enough and when to write code.

Not every AI app needs a programmer

The admissions team at our study-buddy startup gets hundreds of enquiries a week from forms, emails and WhatsApp. Someone reads each one, decides what it's about, copies details into a spreadsheet and forwards it. It's slow, boring and error-prone.

They don't need a developer to fix this. With low-code tools, a non-programmer can connect "when a form is submitted" to "let AI classify it" to "add a row and notify the right person" by clicking blocks together. The AI step is simply a prompt inside the flow.

The building blocks

Almost every low-code automation is the same three-part pattern. Build one below and run a sample through it:

  • Trigger: the event that starts the flow, such as a new form response, an email, a WhatsApp message, a file upload or a schedule.
  • AI step: a model that classifies, summarises, extracts fields, translates or drafts a reply.
  • Action: what happens next, such as adding a spreadsheet row, sending a message, creating a task or updating a database.
  • Data: where information lives, like Excel, Google Sheets, SharePoint lists or a database.

Microsoft Power Platform

Microsoft's original lesson uses Power Platform, a family of low-code tools used by many companies:

  • Power Apps: build apps with forms, screens and buttons. You can describe the app you want in plain language and Copilot builds a first version.
  • Power Automate: automate workflows with triggers and actions across hundreds of connected services.
  • AI Builder: ready-made AI models inside your apps and flows, for example extracting fields from invoices or forms, classifying text, or running your own prompts.
  • Copilot Studio: build chat assistants (copilots) grounded in your own documents and websites.
  • Dataverse: the secure database underneath it all.

Other popular tools

The same ideas appear in many tools. Pick based on what your organisation already uses:

  • Zapier and Make: connect thousands of web apps with simple trigger-action flows and built-in AI steps.
  • n8n: an open-source workflow tool you can self-host, with AI and agent nodes.
  • Google Workspace (Apps Script, AppSheet) and spreadsheet AI functions: handy for schools already on Google.

The enquiry flow, end to end: a Google Form response arrives → an AI step extracts name, class and topic as JSON and classifies the request (admissions, fees or technical) → the flow adds a row to the "Enquiries" sheet and notifies the right counsellor → for common questions, the AI drafts a reply that a human approves before it's sent.

Low-code or code?

Low-code shines when…

You're automating a business process, the people who know the process can build it, speed matters more than custom design, and it connects tools you already use.

Write code when…

You need a custom product UI, complex logic, high volume at low cost, full control over prompts, models and data, or features like streaming chat and RAG tuned your way.

Many teams do both: a low-code prototype proves the idea in days, then developers rebuild the parts that need more control.

Guardrails still apply

  • Human in the loop: let AI draft, and let people approve anything sent to parents or customers.
  • Permissions: flows run with someone's access rights. Use dedicated service accounts and give them the least access they need.
  • Privacy: student data stays in approved systems. Redact what the AI step doesn't need (Lesson 3).
  • Monitoring: check run history, failures and a sample of AI outputs every week.

Hands-on

Low-code tools hide the code, but underneath a flow is just data and steps. These exercises show what's really happening.

Your task: the classify() function stands in for the AI step (in a real flow it would be a prompt). Complete run_flow(): for each enquiry, classify it, add a row to sheet, and count the categories. Expected: Routed 3 enquiries: fees=1, admissions=1, technical=1.

enquiries = [
    {"from": "Priya", "text": "Is there a weekend batch for Python in class 10?"},
    {"from": "Mr. Rao", "text": "What are the fees for the summer AI camp?"},
    {"from": "Ankit", "text": "The video in lesson 3 is not loading on my phone."},
]

def classify(text):            # stand-in for the AI step
    t = text.lower()
    if "fee" in t or "price" in t:
        return "fees"
    if "not loading" in t or "error" in t:
        return "technical"
    return "admissions"

sheet = []                      # stand-in for the "Add a row" action

def run_flow(items):
    counts = {"fees": 0, "admissions": 0, "technical": 0}
    for item in items:
        # TODO: category = classify(...); append {"name", "category", "text"} to sheet; count it
        pass
    return counts

counts = run_flow(enquiries)
for row in sheet:
    print(row)
print(f"Routed {len(sheet)} enquiries: fees={counts['fees']}, admissions={counts['admissions']}, technical={counts['technical']}")
Show solution
        category = classify(item["text"])
        sheet.append({"name": item["from"], "category": category, "text": item["text"]})
        counts[category] += 1

Your task: low-code tools save flows as JSON. Write validate(): a flow is valid when its first step is a trigger, its last step is an action, and it contains at least one AI step. Then fix the flow by adding an AI step. When your checks catch the broken test flow and your fixed flow is valid, it prints ✓ All checks passed.

import json

flow_json = """{
  "name": "Enquiry triage",
  "steps": [
    {"type": "trigger", "name": "New Google Form response"},
    {"type": "action",  "name": "Add row to Enquiries sheet"}
  ]
}"""

def validate(flow):
    steps = flow["steps"]
    problems = []
    # TODO: add a message to problems if steps[0]["type"] != "trigger"
    # TODO: add a message if steps[-1]["type"] != "action"
    # TODO: add a message if no step has type "ai"
    return problems

flow = json.loads(flow_json)
# TODO: insert an AI step in the middle, e.g. {"type": "ai", "name": "Classify the request"}

problems = validate(flow)
print("Flow is valid" if not problems else "Problems: " + "; ".join(problems))
bad = {"steps": [{"type": "action", "name": "Send an email"}]}
caught = validate(bad)
print("Broken test flow caught:", caught if caught else "no, validate() found nothing wrong")
if not problems and caught:
    print("✓ All checks passed")
Show solution
def validate(flow):
    steps = flow["steps"]
    problems = []
    if steps[0]["type"] != "trigger":
        problems.append("first step must be a trigger")
    if steps[-1]["type"] != "action":
        problems.append("last step must be an action")
    if not any(s["type"] == "ai" for s in steps):
        problems.append("add at least one AI step")
    return problems

flow = json.loads(flow_json)
flow["steps"].insert(1, {"type": "ai", "name": "Classify the request"})

Check your understanding

What are the three parts of most low-code AI automations?

  1. Model, temperature, tokens
  2. Trigger, AI step, action
  3. Frontend, backend, database
  4. Prompt, embedding, vector

Something happens (trigger), AI processes it, then the flow does something (action).

Which Power Platform tool would you use to build a chat assistant grounded in your school's documents?

  1. Dataverse
  2. Power Automate
  3. AI Builder
  4. Copilot Studio

Copilot Studio builds conversational assistants that can answer from your own content.

Your AI flow drafts replies to parents. What's the safest setup?

  1. A human reviews and approves each draft before it's sent
  2. Send automatically to save time
  3. Use a higher temperature for friendlier replies
  4. Give the flow admin access to every system

Keep a human in the loop for messages to real people, and give flows only the access they need.

Key takeaways

  • Low-code tools let the people who know a process automate it with AI themselves.
  • The core pattern is trigger → AI step → action, connected to your data.
  • Power Platform, Zapier, Make and n8n all follow it. Pick what fits your organisation.
  • Prototype fast with low-code, add guardrails, and move to code when you need more control.

Next: function calling, where you give an LLM the power to use your tools and APIs.

Your progress is saved in this browser.

Adapted from Lesson 10 of Microsoft's "Generative AI for Beginners" (MIT License), rewritten and extended by Aiprojects4U. View source