A logic-based protocol for organizing life-captures into Notion. Routes images from WhatsApp into categorized Notion databases via your private Discord server channels using OpenClaw's sessions_send tool.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe β weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Glass2claw?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-glass2claw)
---
name: glass2claw
description: "A logic-based protocol for organizing life-captures into Notion. Routes images from WhatsApp into categorized Notion databases via your private Discord server channels using OpenClaw's sessions_send tool."
metadata:
{
"openclaw":
{
"emoji": "ποΈ",
"requires": {
"env": ["NOTION_API_KEY"],
"configPaths": ["configs/vision_router.md"],
"tools": ["sessions_send", "message", "web_fetch"]
},
"dataFlow": {
"input": "Image URL forwarded from WhatsApp via sessions_send",
"routing": "Agent reads configs/vision_router.md, classifies image intent (Wine/Tea/Contacts), then calls sessions_send to the matching Discord channel session key",
"output": "Structured entry written to the corresponding Notion database using NOTION_API_KEY"
}
},
}
---
# glass2claw: The Vision Router Protocol
`glass2claw` provides logical routing templates to organize visual captures from WhatsApp into structured Notion databases, via your private Discord server.
## ποΈ Design Philosophy
This skill is **instruction-only**. No binaries, no curl, no exec commands. It relies entirely on native OpenClaw platform tools:
| Step | Tool Used | What it does |
|------|-----------|--------------|
| Receive image | `sessions_send` | WhatsApp session forwards image URL to Discord hub session |
| Classify intent | Agent reasoning | Determines Wine / Tea / Contacts from image |
| Route | `sessions_send` | Hub sends to the correct specialist Discord channel session |
| Store | `message` + Notion API | Specialist posts image and writes entry to Notion database |
**No data leaves your private OpenClaw infrastructure.** All routing happens between your own Discord server's channels.
## π Configuration
### 1. Required Config File: `configs/vision_router.md`
Create this file in your OpenClaw workspace at the exact path `configs/vision_router.md`. The Agent reads this file to resolve Notion database IDs. This path is declared in the skill metadata under `configPaths`.
```markdown
# Vision Router Config
## Notion Database IDs
- Wine Cellar: [YOUR_NOTION_DATABASE_ID]
- Tea Closet: [YOUR_NOTION_DATABASE_ID]
- Contacts: [YOUR_NOTION_DATABASE_ID]
## Discord Session Keys (hub β specialist routing)
- Wine session: agent:main:discord:channel:[YOUR_WINE_CHANNEL_ID]
- Tea session: agent:main:discord:channel:[YOUR_TEA_CHANNEL_ID]
- Contacts session: agent:main:discord:channel:[YOUR_CONTACTS_CHANNEL_ID]
```
### 2. Apply the Templates
- **Hub routing logic**: `SAMPLE_AGENT.md` β paste into your hub Discord channel's AGENTS.md or SOUL.md
- **Wine specialist persona**: `SAMPLE_SOUL_WINE.md` β paste into your wine channel's SOUL.md
## π Data Flow (explicit)
```
WhatsApp (image received)
β sessions_send β Discord #hub channel session
β Agent classifies: Wine | Tea | Contacts
β sessions_send β matching Discord specialist channel session
β message tool: posts image to channel
β Notion API (NOTION_API_KEY): writes structured entry
```
All hops are within your private Discord server. The session keys in `configs/vision_router.md` are user-defined and point only to channels you own.
## π‘οΈ Best Practices
- **Least Privilege**: Scope your Notion token to only the three required databases
- **Private channels only**: Use private Discord servers, never public ones
- **No agent discretion on destinations**: All target session keys are hardcoded in `configs/vision_router.md`, not inferred by the agent
---
*Created by JonathanJing | AI Reliability Architect*