# 2025/09/29 功能架構圖 > [!Note] > **時間:** - > **地點:** 家中 > **參與者:** 吳竣霆、林意文、許育祁、潘群方 > **工具:** Discord ![Untitled diagram _ Mermaid Chart-2025-09-29-151000](https://hackmd.io/_uploads/BJVvWm_nel.png) ```mermaid --- config: layout: elk --- flowchart LR subgraph Profile["基本資料填寫"] W2a["身高"] W2b["體重"] W2c["年齡"] W2d["性別"] W2e["職業"] end subgraph Diet["飲食習慣填寫"] W3a["常吃餐點"] W3b["禁忌"] W3c["過敏源"] W3d["飲食偏好"] W3e["每日用餐次數"] end subgraph Exercise["運動習慣填寫"] W4a["運動種類"] W4b["運動頻率"] W4c["每次運動時間"] end subgraph Website["🌐 網站"] W1["註冊與登入"] Profile Diet Exercise W5["歷史紀錄查詢"] W6["個人建議顯示 (完整報告)"] end subgraph D_Info["📊 Discord 顯示的 AI 簡化資訊"] DI1["今日重點建議 (1~2 句話)"] DI2["簡單營養提醒"] DI3["基於個人習慣的小提示"] DI4["查看更多完整報告 (連結至網站)"] end subgraph DiscordBot["🤖 Discord Bot"] D1["/profile 顯示個人檔案網站連結與填寫狀態"] D3["/exercise 紀錄或查詢運動"] D4["/remind 設定提醒 喝水 運動 飲食紀錄"] D5["/help 顯示可用指令與說明"] D6["/report 查看健康與飲食簡化建議 + 完整連結"] D7["/chat 與生成式AI對話 諮詢飲食建議"] D_Info end subgraph Server["🗄️ 後端伺服器"] S1["接收網站 JSON 資料"] S2["接收 Discord Bot JSON 資料"] S3["整合資料"] S4["寫入 PostgreSQL"] S5["查詢 PostgreSQL"] S6["送出資料至 AI API"] S7["接收 AI API 回傳結果"] S8["產生個人化建議 (完整)"] S9["簡化建議"] end W1 --> Profile Profile --> Diet Diet --> Exercise Exercise --> W5 W5 --> W6 S1 --> S3 S3 --> S4 S5 --> S6 & S8 S6 --> S7 D6 --> D_Info S7 --> S4 D7 --> DI1 Website --> S1 DiscordBot --> S2 S2 --> S3 D1 --> Website S8 --> S9 S9 --> D6 ```