Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Built a Brex Connector for Cognee: Bringing Business Expense Data Into AI Memory 🚀

说明与用途

为 Cognee 构建了 Brex 连接器,将费用、备忘录和预算导入 AI 内存系统,支持身份验证、分页、增量同步和安全删除。

问题

How can we make business expense information available to an AI knowledge system in a useful, structured, and maintainable way?

结果

The Brex connector successfully streams expenses, memos, and budgets into Cognee, enabling AI queries over structured and contextual data while handling pagination, incremental sync, and safe deletion reconciliation.

工作流

  • Identify open issue #4797 for Brex connector requirements
  • Understand Brex API and Cognee architecture
  • Implement authentication, pagination, error handling, data transformation, incremental sync, and safe deletion reconciliation
  • Write unit tests for authentication, pagination, sync state, and deletion guardrails
  • Create usage example with cognee_community_connector_brex
  • Submit pull request #389
  • Document setup and usage
  • Run end‑to‑end DLT pipeline with DuckDB

证据

The connector supports three data resources: Expenses, Memos, Budgets

来源

The connector uses Bearer token authentication to access the Brex Platform API.

来源

The implementation includes handling for authentication errors, permission errors, and rate limits.

来源

The connector uses Brex's posted_at_start filter and stores synchronization state through DLT's resource-state mechanism to track the latest processed timestamp.

来源

The implementation therefore includes a guardrail: if reconciliation encounters API or network errors, deletion-marker generation is aborted rather than proceeding with potentially incomplete information.

来源

  • 记录日期: 2026-10-19T14:41:25.434Z