Pular para o conteúdo
Skillpedia
PDF, Word e slides260 mil · #541

notion

O que ela faz

Esta skill conecta sua IA ao Notion, a ferramenta de anotações e projetos. É indicada para quem guarda páginas e bancos de dados no Notion e quer que a IA os leia ou atualize.

Quando usar

  • ✓Quando você quer que sua IA crie, leia ou atualize páginas ou bancos de dados do Notion.
  • ✓Quando quer enviar arquivos para uma página do Notion.
  • ✓Quando precisa conectar uma integração do Notion para que sua IA acesse uma página.

Link da skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/notion/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/notion/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Adicione uma nova tarefa ao meu banco de dados de projetos do Notion, com data de entrega na próxima sexta-feira.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill usa um token de integração do Notion. Ela pode chamar o comando ntn onde ele está instalado ou fazer requisições web simples com curl em qualquer sistema, inclusive no Windows.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Notion

Talk to Notion two ways. Same integration token works for both — pick by what's available.

◆ ntn CLI — Notion's official CLI. Shorter syntax, one-line file uploads, required for Workers. macOS + Linux only as of May 2026 (Windows support "coming soon"). Default when installed. ◆ HTTP + curl — works everywhere including Windows. Default fallback when ntn isn't installed.

Setup

1. Get an integration token (required for both paths)

  1. Create an integration at https://notion.so/my-integrations
  2. Copy the API key (starts with ntn_ or secret_)
  3. Store in ${HERMES_HOME:-~/.hermes}/.env:
    NOTION_API_KEY=ntn_your_key_here
    
  4. Share target pages/databases with the integration in Notion: page menu ... → Connect to → your integration name. Without this, the API returns 404 for that page even though it exists.

2. Install ntn (preferred path on macOS / Linux)

# Recommended
curl -fsSL https://ntn.dev | bash

# Or via npm (needs Node 22+, npm 10+)
npm install --global ntn

ntn --version    # verify

Skip ntn login — use the integration token instead. This works headlessly, no browser needed:

export NOTION_API_TOKEN=$NOTION_API_KEY      # ntn reads NOTION_API_TOKEN
export NOTION_KEYRING=0                       # don't try to use the OS keychain

Add those exports to your shell profile (or to ${HERMES_HOME:-~/.hermes}/.env) so every session inherits them.

3. Choose path at runtime

if command -v ntn >/dev/null 2>&1; then
  # use ntn
else
  # fall back to curl
fi

Windows users: skip step 2 entirely until native ntn ships — Path B works fine. If you want CLI ergonomics now, install ntn inside WSL2.

API Basics

Notion-Version: 2025-09-03 is required on all HTTP requests. ntn handles this for you. In this version, what users call "databases" are called data sources in the API.

Path A — ntn CLI (preferred, macOS / Linux)

Raw API calls (shorthand for curl)

ntn api v1/users                                  # GET
# POST with inline body
ntn api v1/pages parent[page_id]=abc123 \
  properties[title][0][text][content]="Notes"
ntn api v1/pages/abc123 -X PATCH archived:=true   # PATCH; := is non-string (bool/num/null)

Syntax notes:

  • key=value — string fields
  • key[nested]=value — nested object fields
  • key:=value — typed assignment (booleans, numbers, null, arrays)

Search

ntn api v1/search query="page title"

Read page metadata

ntn api v1/pages/{page_id}

Read page as Markdown (agent-friendly)

ntn api v1/pages/{page_id}/markdown

Read page content as blocks

ntn api v1/blocks/{page_id}/children

Create page from Markdown

ntn api v1/pages \
  parent[page_id]=xxx \
  properties[title][0][text][content]="Notes from meeting" \
  markdown="# Agenda

- Q3 roadmap
- Hiring"

Patch a page with Markdown

ntn api v1/pages/{page_id}/markdown -X PATCH \
  markdown="## Update

Shipped the prototype."

Query a database (data source)

ntn api v1/data_sources/{data_source_id}/query -X POST \
  filter[property]=Status filter[select][equals]=Active

For complex queries with sorts, multiple filter clauses, or compound logic, pipe JSON in:

echo '{"filter": {"property": "Status", "select": {"equals": "Active"}}, "sorts": [{"property": "Date", "direction": "descending"}]}' | \
  ntn api v1/data_sources/{data_source_id}/query -X POST --json -

File uploads (one-liner — biggest CLI win)

ntn files create < photo.png
ntn files create --external-url https://example.com/photo.png
ntn files list

Compare to the 3-step HTTP flow (create upload → PUT bytes → reference).

Useful env vars

Var Effect
NOTION_API_TOKEN Auth token (overrides keychain) — set this to your integration token
NOTION_KEYRING=0 File-based creds at ~/.config/notion/auth.json instead of OS keychain
NOTION_WORKSPACE_ID Skip the workspace picker prompt

Path B — HTTP + curl (cross-platform, default on Windows)

All requests share this pattern:

curl -s -X GET "https://api.notion.com/v1/..." \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2025-09-03" \
  -H "Content-Type: application/json"

On Windows the curl shipped with Windows 10+ works as-is. PowerShell users can also use Invoke-RestMethod.

Search


Perguntas frequentes

Por que a IA retorna um erro 404 para uma página que eu consigo ver?

A skill diz que você precisa compartilhar a página com a sua integração no Notion, pelo menu Conectar a, ou a API retorna 404.

O comando ntn funciona no Windows?

A skill diz que o ntn é para macOS e Linux desde maio de 2026, então usuários do Windows devem usar o método com curl.

Onde guardo o token?

A skill sugere salvá-lo no seu arquivo .env do Hermes como NOTION_API_KEY.

Detalhes

Descrição original do autor

Notion API + ntn CLI: pages, databases, markdown, Workers.

repo: NousResearch/hermes-agent

Popularidade

Estrelas no GitHub
260 mil
Posição no ranking
#541
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas