I connected Contentful to Cognee. Importing content was the easy part.
说明与用途
将 Contentful 连接到 Cognee,实现已发布内容的同步、更新和删除处理、源隔离以及故障恢复。
问题
Keeping AI memory in sync with a Contentful source when entries are updated, deleted, or when processing fails.
结果
The connector achieved 94 passing tests locally, covering synchronization, deletion, source isolation, and recovery across multiple Python versions and storage backends.
工作流
- Connect to Contentful via Delivery API token
- Import entries, asset metadata, and content models as Cognee documents
- Synchronize changes using the Sync API and checkpoint
- Handle deletion events and convert them to hard-delete markers
- Maintain source isolation with source_id and separate credentials
- Fail on incomplete pagination to avoid data loss
- Reconcile unfinished changes using Cognee’s dlt staging
证据
The connector lives in cognee-community/packages/connector/contentful/
The first run imports the available content and saves a checkpoint. Later runs use that checkpoint to retrieve changes.
The October 8 local verification report recorded 94 passing tests.
The implementation is available in my Contentful connector branch.
- 记录日期: 2026-10-08T17:40:56.308Z