Documentation
¶
Overview ¶
Package notion is the pure record-shaping logic for the Notion long-tail connector: how to turn the raw JSON a Notion search returns (via the activepieces piece run through the auto engine) into normalized {title, body, external_id, url, timestamp} documents for KB ingestion. It has NO cloud dependency, so the Notion parsing — where the real per-provider complexity lives — is unit-testable in isolation. clients/kb/sync_piece.go wires this into the framework.Ingest path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Body ¶
Body renders a short body from the record's plain-text property values, so the embedding has prose beyond the title. Full block content is a follow-up getPageOrBlockChildren pull; this keeps the first ingest bounded and honest.
func Results ¶
Results extracts the item list from a custom_api_call output. The piece returns { status, headers, body }; a Notion search puts items under body.results.