Loading page...Π—Π°Π³Ρ€ΡƒΠΆΠ°Π΅ΠΌ страницу...正在加载鑡青...
AtlasRepo

I Built a Brex Connector for Cognee: Bringing Business Expense Data Into AI Memory πŸš€

ОписаниС ΠΈ ΠΏΡ€ΠΈΠΌΠ΅Π½Π΅Π½ΠΈΠ΅

Π Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π½ ΠΊΠΎΠ½Π½Π΅ΠΊΡ‚ΠΎΡ€ Brex для Cognee, ΠΏΠΎΠ·Π²ΠΎΠ»ΡΡŽΡ‰ΠΈΠΉ ΠΈΠΌΠΏΠΎΡ€Ρ‚ΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒ расходы, Π·Π°ΠΌΠ΅Ρ‚ΠΊΠΈ ΠΈ Π±ΡŽΠ΄ΠΆΠ΅Ρ‚Ρ‹ Π² систСму 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