Step 1 of 8
Step-by-Step Guide

Build Your
Smart City Workflow

Follow these 8 steps to create your own AI-powered research workflow on the Coze Coding platform. No prior coding experience required.

01
Create Your Coze Coding Account
Week 1

You'll build your workflow on the Coze Coding platform. First, you need an account and a project.

What to do
  1. Go to code.coze.cn
  2. Sign up with your CUHK email address
  3. Click "New Project" in the top right corner
  4. Name your project: URSP3600 - [Your Name]
  5. Choose the Python template
  6. Click "Create"
Account created
Project created
02
Import the Course Knowledge Base (RAG)
Week 1-2

The course RAG contains all the knowledge from the 13-week syllabus — concepts, reading lists, Hong Kong data sources, and project guidelines. Your AI nodes will use this to answer questions accurately.

What to do
  1. Go to the Resources page and download "Course RAG Knowledge Base"
  2. In your Coze Coding project, click the "Skills" tab on the left sidebar
  3. Click "Add Skill""Knowledge Base"
  4. Upload the downloaded RAG file
  5. Name it: ursp3600_course_knowledge
  6. Wait for indexing to complete (usually 1-2 minutes)
RAG file downloaded
Knowledge base imported
03
Add the 6 Methodology Nodes
Week 2-4

Each node is an AI agent that handles one part of your smart city project. Drag them from the node library onto the canvas.

What to do
  1. Go to the Resources page and download "6 Methodology Node Templates"
  2. In your Coze Coding project, open the workflow canvas (the main view)
  3. Click the "+" button to add a new node
  4. For each of the 6 nodes below, create a new LLM Agent node:
    • Problem Framer — transforms urban observations into structured problem statements
    • Data Stack Designer — recommends Hong Kong government data sources for your domain
    • System Architect — designs 4-layer system architecture with BIM/digital twin connection
    • AI Composer — configures AI capabilities (RAG, prediction, NLP) for your system
    • Value Canvas — evaluates public/institutional/commercial value and feasibility
    • Skill Generator — packages your complete project into a reusable Skill document
  5. For each node, paste the corresponding System Prompt from the downloaded template file
  6. Set the model to doubao-seed-2-0-lite-260215 for all nodes
6 nodes created
System prompts configured
04
Connect the Nodes
Week 4-6

Connect the nodes in sequence. The output of each node becomes the context for the next one. Choose one of the three preset templates.

Choose your template
  • From Scratch (recommended for beginners):
    Problem Framer → Data Stack → System Architect → Skill Generator
  • AI First (if your project is AI-heavy):
    Problem Framer → AI Composer → Value Canvas → Skill Generator
  • Data Driven (if your project is data-heavy):
    Data Stack → System Architect → Value Canvas → Skill Generator
How to connect
  1. On the canvas, hover over a node until you see the output dot (right side)
  2. Click and drag from the output dot to the input dot (left side) of the next node
  3. Repeat until all nodes are connected in your chosen sequence
  4. Connect the Start node to your first node, and your last node to the End node
Nodes connected
Start → End linked
05
Run Your Workflow
Week 6-8

Now it's time to run your workflow. Input your project description and let the AI nodes process it step by step.

What to do
  1. Click the "Run" button (top right of the canvas)
  2. In the input panel, fill in:
    • project_description: Describe your smart city project in 1-3 sentences
      Example: "CUHK campus students spend too much time finding parking spots during peak hours."
    • project_domain: Choose your domain — transport, environment, energy, building, or public_service
  3. Click "Execute"
  4. Watch each node process in sequence — you'll see the output appear step by step
  5. Review the final output from the Skill Generator node
Workflow executed
Results reviewed
06
Download Your Skill Document
Week 8-10

The Skill Generator node produces a standardized JSON document that packages your entire project. You can install this Skill onto your own AI Agent.

What to do
  1. After running the workflow, find the output from the Skill Generator node
  2. Copy the JSON output
  3. Save it as a file: my_smart_city_skill.json
  4. This file contains all 7 project elements:
    • Problem definition
    • System logic
    • Data model
    • BIM/digital twin connection
    • AI workflow logic
    • Interface design
    • Implementation value
  5. Go to the Resources page to see the Skill document format specification
Skill document saved
7 elements verified
07
Create Your Own RAG and Skill
Week 10-12

Now go beyond the course templates. Use AI to create your own knowledge base and Skill document based on your specific project domain.

What to do
  1. Build your own RAG:
    • Collect domain-specific documents (research papers, government reports, case studies)
    • In Coze Coding, create a new Knowledge Base
    • Upload your documents — the platform will automatically index and vectorize them
    • Name it: [your_project]_knowledge
  2. Create your own Skill:
    • Use the Skill Generator node with your custom RAG as input
    • Or manually write a Skill document following the format specification on the Resources page
    • Include your project's unique data sources, system architecture, and AI workflow
  3. Test it:
    • Install your Skill onto a new AI Agent in Coze Coding
    • Ask the Agent questions about your project domain
    • Verify it can answer using your custom knowledge base
Custom RAG created
Custom Skill generated
Agent tested
08
Build Your Complete Workflow
Week 12-13

For your final project, build a complete custom workflow that combines multiple methodology nodes with your own RAG and Skills. This is your capstone deliverable.

What to do
  1. Design your workflow:
    • Choose which methodology nodes you need (you don't have to use all 6)
    • Decide the order based on your project logic
    • Add any additional nodes (data processing, visualization, etc.)
  2. Integrate your custom RAG:
    • Connect your custom knowledge base to the relevant nodes
    • Make sure each node can access the domain-specific information it needs
  3. Run and iterate:
    • Run your workflow with your actual project data
    • Review the outputs and refine your node configurations
    • Run multiple times until you're satisfied with the results
  4. Submit for Week 13:
    • Export your final workflow configuration
    • Include your Skill document
    • Prepare a 5-minute presentation showing your workflow in action
Custom workflow built
RAG integrated
Final results generated
Ready for presentation