2025年5月22日 星期四

安裝magentic ui

 # 創建虛擬環境

python3 -m venv .venv

.venv\Scripts\activate


# 安裝Magentic-UI

pip install magentic-ui


# 設置API密鑰并啟動

export OPENAI_API_KEY=<YOUR_API_KEY>

magentic ui --port 8081


pip install magentic-ui[ollama]


magentic ui --config O:/magentic-ui/config.yaml

config.yaml如下

model_config:  &client

  provider: autogen_ext.models.openai.OpenAIChatCompletionClient

  config:

    model: gemma3:12b

    base_url: http://localhost:11434/v1

    api_key: ollama

    max_retries: 3

    model_info:

      vision: true

      function_calling: true

      json_output: false

      family: unknown

      structured_output: true


orchestrator_client: *client

coder_client: *client

web_surfer_client: *client

file_surfer_client: *client

action_guard_client: *client

n8n結合imap email

1.設定IMAP Email

2.Credential to connect with

user:

Password:

host:mail.taisugar.com.tw

port:143

關閉:SSL/TLS

3.Mailbox Name:inbox

Action:Mark as Read

4.Format:Resolved

5.Property Prefix Name:attachment

6.Options

n8n本地安裝使用

 1.使用docker安裝,必須先安裝docker-desktop,docker-compose.yml如下

services:

  n8n:

    image: docker.n8n.io/n8nio/n8n:latest

    container_name: n8n

    restart: always

    ports:

      - "5678:5678"

    environment:

      - GENERIC_TIMEZONE=Asia/Taipei

      - TZ=Asia/Taipei

      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true

      - N8N_SECURE_COOKIE=false

    volumes:

      - g:/n8n:/home/node/.n8n

執行docker compose up -d

2.本地安裝

    1.安裝node.js v22.16

    2.node -v

      npm -v

    3.npm install -g n8n

      npm install -g n8n@1.92.0  特定版本 不要安裝1.93

    4.n8n

=======================================

移除n8n

npm uninstall -g n8n

移除 C:\Users\<您的用戶名>\.n8n\

rmdir /s /q C:\Users\<您的用戶名>\.n8n\

移除 C:\Users\<您的用戶名>\AppData\Local\npm-cache

卸載 Node.js




2025年5月20日 星期二

n8n AI與mcp 結合使用

1.使用When chat message received

2.使用AI Agent

在AI agent中option加入System Message

You are a helpful assistant

- Use firecrawl for web search

Make sure to listTools first then

executeTool when ready

或者

你是一位得力助手

- 使用 Firecrawl 進行網頁搜索

確保先列出工具,然後

準備就緒時執行工具

3.連結model(Google Gemini Chat Model)

host: https://generativelanguage.googleapis.com

api key

選Model

4.使用tool

n8n mcp 使用 Community nodes安裝才有STDIO

在n8n介面左下角人員旁3個點...,點選settings--community--nodes--install--Browse去選要n8n-nodes-mcp,選同意安裝

n8n mcp必須有2個

1.list

選用firecrawl網路搜尋

Credential to connect with

    Command : npx

    Arguments : -y firecrawl-mcp

    Environments : FIRECRAWL_API_KEY=fc-YOUR_API_KEY

2.執行工具

n8n mcp client 

Operation

 Execute Tool


Tool Name:{{ $fromAI ("tool", "the selected tool to use")}}

Tool Parameters:選右邊星星的符號:Let the model define this parameter




2025年4月21日 星期一

如何使用ChatGPT-4o生成Q版公仔或盒玩?生成條件與方法一次看懂

1.如何使用ChatGPT-4o生成Q版公仔或盒玩

https://www.sogi.com.tw/articles/chatgpt/6264985

2.ChatGPT生成圖片指令總整理!60種卡通、動漫圖像風格免費用

https://mrmad.com.tw/chatgpt-generates-image-instructions

3.最新 ChatGPT 4o 圖片生成應用教學:LINE 貼圖、手繪菜單、空間裝潢、商品海報
https://raymondhouch.com/lifehacker/digital-workflow/chatgpt-4o-image-generation/

4.ChatGPT公仔指令大全指南,免費用150+實用AI生成指令技巧
https://mrmad.com.tw/chatgpt-doll-command-list#google_vignette

5.ChatGPT公仔指令大全!「100種風格指令」曝:生成圖片不只吉卜力
https://www.nownews.com/news/6670426

6.吉卜力風自己做!RTX 5090/ 5080 筆電本地開外掛!
https://tenten.co/learning/ghibli-lora-nvidia-laptop/

7.ChatGPT公仔生成教學:20多種AI公仔指令和動態影片效果整理
https://mrmad.com.tw/chatgpt-doll-generation-tutorial

請產生一張公仔的圖片,該公仔包裝為零售陳列樣式,人物外貌請根據上方圖片訂製,臉部盡量長得像真人,要完整身體(含腳)

請根據附上的原始照片,將畫面中的角色轉化為 3D Q版擬真公仔,保持原照片中的服裝與造型,背景是證券所,加入股票交易元素,整體放置於一張拍立得照片中,並由一隻手持握著拍立得相紙。畫面呈現出一種視覺效果:角色從拍立得照片中突破邊框、延伸進入現實世界的二維空間,拍立得底部文字:手寫字體 Jimmy、Jasmine

請將原始照片製作成迷你立體擬真Q版公仔,服裝配件和原始照片相同,裝進水晶球裡,水晶球場景是證券所,加入股票元素,配件包含:iPhone背面、macbook、鈔票模型。水晶球底座寫上文字「Jimmy」「Jasmine」,水晶球要晶瑩剔透

使用原始照片製作擬真Q版人物,置入Polly Pocket風格玩具盒中,盒子形狀是圓形開蓋式,角色坐在證券所裡,盒內場景包含股票指數,配件包含macbook、iPhone背面,包裝呈現展開盒子與內部微型世界,整體細節豐富,底座寫上文字「Jimmy」「Jasmine」



可以幫我做成9格line貼圖嗎?以人物頭像為中心 W370 H320,表情有 
1.哈囉(Hello~)
2.再見(Bye!)
3.哈哈(笑/開心)
4.生氣(怒)
5.難過(Sad/哭泣)
6.睡覺(ZzZ/打瞌睡)
7.謝謝(Thanks)
8.抱歉(Sorry)
9.好的/OK(Okay)

2025年4月17日 星期四

好用的工具

 

1.Joplin:免费开源、全平台同步的安全笔记神器
https://www.youtube.com/watch?v=2JCL6O_Yjgc
還可以更厲害?25分鐘教會你用Google AI Studio提早結束工作!
https://www.youtube.com/watch?v=WwuvIYuC2Xk

3.Firebase studio最全功能实测,能替代Cursor吗?
https://www.youtube.com/watch?v=a3Z6-iakHwc

4.免安裝其他軟體!Windows 就有內建惡意軟體移除工具,教你怎麼用
https://www.koc.com.tw/archives/595089