/start-12-5.en
Lesson command
$ npx -y skills add minicoohei/ai-agent-camp --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/start-12-5.en
Context preview
What this command does when you run it.
Lesson command
Command definition
start-12-5.en.mddescription: "Lesson command"
chapter: "courses/aiagent/lesson03-core/module12-notion"
prerequisites: ["start-12-4"]
duration: "~30 min"
level: "intermediate"
tags: ["notion", "mcp", "files", "attachments"]
nonInteractiveMode: deferred
๐ Lesson 12-5: Notion and Slack Integration
๐ What You'll Do
**Lesson 12-5** !
| Item | Details | |------|------| | Goal | Identify **file blocks, attachments, and exportable URLs** on Notion, enabling the agent to **verify content and display it clearly to the user** | | Duration | ~30 min | | Skills used | Notion MCP (page/block retrieval), official API as needed | | Prerequisites | `/start-12-4` completed, with access to the target page | | Course page | [Module 12: Notion](https://ai-agent.camp/en/course/module-12) alongside this lesson |
**Session flow:** 1. Identify blocks containing **files / PDFs / images** from the target page's block list 2. Choose the **retrievable format** (text extraction, temporary URL, local save) available via the MCP or API in use 3. Do not paste binary directly in chat; return as **file name, type, summary, and reference link**
By the end of this session, you will be able to reproduce the flow: "Where is the file -> How to retrieve it -> How to present it to the user".
> **Hint**: If the AI response stops midway, type "please continue" or "keep going" to resume.
> **Secret information**: Do not paste download URLs or tokens raw in logs or chat.
---
๐ฏ Readiness Check
**AskQuestion configuration:**
{
"title": "๐ฏ Pre-session check",
"questions": [{
"id": "readiness",
"prompt": "Do you have a Notion page with file attachments ready?",
"options": [
{"id": "ready", "label": "Ready"},
{"id": "need_page", "label": "I want to create a test page"},
{"id": "skip_practice", "label": "Just review the procedure"}
]
}]
}---
๐ Step 1: Identify File Blocks
The agent performs the following:
1. Confirm the **page URL or page ID** from the user 2. Traverse blocks with MCP / `retrieve block children` etc., and list blocks corresponding to `type: file` or embeds 3. Return a short list of "file name, block type" to the user
**Prompt examples for the user:**
Please list all file attachments in this Notion page,
and add a brief note for each on how to retrieve it (via MCP or open in browser).
Page: <URL>
---
๐ Step 2: Retrieve and Verify Locally
1. Follow the MCP tool instructions to attempt **file content retrieval** or **saving to the user's local machine** 2. If the tool returns binary only, report just the **file size and hash**, leaving the opening procedure to the user 3. If convertible to text/Markdown, extract only the **first few hundred characters** and headings
---
๐ Step 3: "Display" in Chat
**Required rules:**
- Images: When possible, show `` or file paths **briefly** (avoid large base64)
- PDF: Summary at page count/table of contents level only (full-text OCR only when user explicitly requests)
- Include "which file" and "how far it was read" in the **completion report**
---
โ
Completion Criteria
- [ ] Can explain the retrieval path for at least one file attachment
- [ ] Converted to a readable format in chat (summary/links)
- [ ] Did not paste URLs containing secrets directly in public chat
Read more
description: "Lesson command" chapter: "courses/aiagent/lesson03-core/module12-notion" prerequisites: ["start-12-4"] duration: "~30 min" level: "intermediate" tags: ["notion", "mcp", "files", "attachments"] nonInteractiveMode: deferred
๐ Lesson 12-5: Notion and Slack Integration
๐ What You'll Do
**Lesson 12-5** !
| Item | Details | |------|------| | Goal | Identify **file blocks, attachments, and exportable URLs** on Notion, enabling the agent to **verify content and display it clearly to the user** | | Duration | ~30 min | | Skills used | Notion MCP (page/block retrieval), official API as needed | | Prerequisites | `/start-12-4` completed, with access to the target page | | Course page | [Module 12: Notion](https://ai-agent.camp/en/course/module-12) alongside this lesson |
**Session flow:** 1. Identify blocks containing **files / PDFs / images** from the target page's block list 2. Choose the **retrievable format** (text extraction, temporary URL, local save) available via the MCP or API in use 3. Do not paste binary directly in chat; return as **file name, type, summary, and reference link**
By the end of this session, you will be able to reproduce the flow: "Where is the file -> How to retrieve it -> How to present it to the user".
> **Hint**: If the AI response stops midway, type "please continue" or "keep going" to resume.
> **Secret information**: Do not paste download URLs or tokens raw in logs or chat.
---
๐ฏ Readiness Check
**AskQuestion configuration:**
{
"title": "๐ฏ Pre-session check",
"questions": [{
"id": "readiness",
"prompt": "Do you have a Notion page with file attachments ready?",
"options": [
{"id": "ready", "label": "Ready"},
{"id": "need_page", "label": "I want to create a test page"},
{"id": "skip_practice", "label": "Just review the procedure"}
]
}]
}---
๐ Step 1: Identify File Blocks
The agent performs the following:
1. Confirm the **page URL or page ID** from the user 2. Traverse blocks with MCP / `retrieve block children` etc., and list blocks corresponding to `type: file` or embeds 3. Return a short list of "file name, block type" to the user
**Prompt examples for the user:**
Please list all file attachments in this Notion page, and add a brief note for each on how to retrieve it (via MCP or open in browser). Page: <URL>
---
๐ Step 2: Retrieve and Verify Locally
1. Follow the MCP tool instructions to attempt **file content retrieval** or **saving to the user's local machine** 2. If the tool returns binary only, report just the **file size and hash**, leaving the opening procedure to the user 3. If convertible to text/Markdown, extract only the **first few hundred characters** and headings
---
๐ Step 3: "Display" in Chat
**Required rules:**
- Images: When possible, show `` or file paths **briefly** (avoid large base64)
- PDF: Summary at page count/table of contents level only (full-text OCR only when user explicitly requests)
- Include "which file" and "how far it was read" in the **completion report**
---
โ Completion Criteria
- [ ] Can explain the retrieval path for at least one file attachment
- [ ] Converted to a readable format in chat (summary/links)
- [ ] Did not paste URLs containing secrets directly in public chat
AI Agent Training for Non-Engineers - Complete Guide to Claude Code / Cursor / Codex ### โ ๏ธ Before you clone Official repository (maintained by the authors): Running AI agents from this repo grants them shell, file-write, and external-API permissions on your
Other commands on ai-agent-camp.
- /check-setup.en
Top-level alias โ see lesson/check-setup.en.md for the full body.
Open command - /check-setup.es
Alias de nivel superior โ el cuerpo completo estรก en lesson/check-setup.es.md.
Open command - /check-setup
Top-level alias โ see lesson/check-setup.md for the full body.
Open command - /check-security.en
Lesson command
Open command - /check-security.es
Lesson command
Open command - /check-security
Lesson command
Open command

