Human-in-the-loop ์ค๊ณ๋ฅผ ํตํ Safe Autonomous Email Agent ๊ตฌํ
๐ฆ I Built a Safe Autonomous Email Agent with OpenClaw and It Actually Works
AI ์์ฝ
Context
OpenClaw ๊ธฐ๋ฐ์ ์์ ์์จํ AI ์์ด์ ํธ ๋์ ์ ๋ฐ์ํ๋ ์ค๋ฐ์ก ๋ฆฌ์คํฌ์ ์ ์ด ๋ถ๊ฐ๋ฅํ Action ์คํ ๋ฌธ์ ์๋ณ. ๋จ์ ์๋ํ๋ฅผ ๋์ด ์ค์ง์ ์ธ ์ ๋ขฐ์ฑ์ ๋ณด์ฅํ๋ ์์คํ ์ ์ด ์ฅ์น ํ์์ฑ ์ฆ๋.
Technical Solution
- Execution Layer ์ ๋จ์ Human-in-the-loop ๊ธฐ๋ฐ์ Approval Gate๋ฅผ ๋ฐฐ์นํ์ฌ ๋น์ ์์ ๋ฉ์ผ ๋ฐ์ก ์์ฒ ์ฐจ๋จ
- Local-Only Gateway ์ค์ ๋ฐ Tailscale ๊ธฐ๋ฐ์ Private Remote Access๋ฅผ ํตํ ์ธ๋ถ ๋ ธ์ถ ์ต์ํ ๋ฐ ๋ณด์ ๊ฐํ
- Docker Sandboxing ๋ฐ Read-Only Workspace Access ์ค์ ์ ํตํ ํธ์คํธ ์์คํ ๋ณดํธ ๋ฐ ์คํ ํ๊ฒฝ ๊ฒฉ๋ฆฌ
- Ollama ๊ธฐ๋ฐ์ Local LLM(Llama 3.3) ์ฑํ์ผ๋ก ๋ฐ์ดํฐ ์ธ๋ถ ์ ์ถ ๋ฐฉ์ง ๋ฐ ํ๋ผ์ด๋ฒ์ ๋ณดํธ ์ฒด๊ณ ๊ตฌ์ถ
- IMAP ์คํฌ๋ฆฝํธ์ OpenClaw Gateway๋ฅผ ์ฐ๋ํ์ฌ 'Fetch $\rightarrow$ Analyze $\rightarrow$ Draft $\rightarrow$ Wait $\rightarrow$ Execute'๋ก ์ด์ด์ง๋ ๊ฒฐ์ ๋ก ์ ์ํฌํ๋ก์ฐ ์ค๊ณ
์ค์ฒ ํฌ์ธํธ
- AI Agent ์ค๊ณ ์ Full Automation๋ณด๋ค Controlled Autonomy ๊ด์ ์ ๊ฐ๋๋ ์ผ ์ฐ์ ์ค๊ณ - ์ธ๋ถ API ๋ ธ์ถ ์ต์ํ๋ฅผ ์ํ Local Gateway ๋ฐ์ธ๋ฉ ๋ฐ VPN ๊ธฐ๋ฐ ์ ๊ทผ ์ ์ด ๊ฒํ - LLM ์คํ ํ๊ฒฝ์ ์ ์ฌ์ ์ํ์ ๊ฒฉ๋ฆฌํ๊ธฐ ์ํ Container Sandboxing ์ ์ฉ ์ฌ๋ถ ํ์ธ - ๋ฏผ๊ฐ ๋ฐ์ดํฐ ์ฒ๋ฆฌ ์ Local LLM ๋์ ์ ํตํ ๋ฐ์ดํฐ ๊ฑฐ๋ฒ๋์ค ํ๋ณด