DEV Community

Cover image for Inside My MergeTober Contribution: Integrating Salesforce with Cognee
Darshan Rajput
Darshan Rajput

Posted on

Inside My MergeTober Contribution: Integrating Salesforce with Cognee

Introduction

AI agents are only as useful as the information they can access. But business knowledge often lives in separate tools, such as CRM platforms, documents, and communication systems.

That is why I participated in MergeTober, contributing to the open-source Cognee ecosystem by working on a Salesforce connector.

Cognee provides a memory layer for AI agents, helping turn data into connected knowledge that can be retrieved by downstream applications. My contribution aims to make Salesforce CRM data available to those workflows.

Why Connect Salesforce with Cognee?

Salesforce contains valuable business information, including customer accounts, sales opportunities, support cases, and Chatter conversations.

Connecting this data to Cognee could help developers build AI applications that retrieve relevant business context instead of relying only on isolated records.

The goal of my connector is to support:

  • Authentication: OAuth 2.0 with a Salesforce Connected App.
  • Data ingestion: Accounts, Opportunities, Cases, and Chatter records.
  • Incremental synchronization: SOQL queries using LastModifiedDate.
  • Deletion handling: Detect deleted source records and support downstream cleanup.
  • Testing and documentation: Unit tests, setup instructions, and a runnable example.

How It Could Work in the Real World

Imagine a sales team using a CRM knowledge assistant.

A representative asks:

β€œWhat open opportunities are associated with this customer, and are there any related support cases?”

A configured application could retrieve relevant Salesforce records through the connector, process the information with Cognee, and use the resulting knowledge as context for an answer.

This is an illustrative use case, not a claim that I have tested a complete assistant against a live Salesforce organization.

Incremental synchronization could help keep the information current, while deletion handling could help prevent outdated source records from remaining in the knowledge system.

Testing My Contribution

I tested the connector locally using mocked Salesforce responses and verified that 9 out of 9 mocked unit tests passed.

These results validate the behavior covered by those tests. They do not independently establish that authentication, synchronization, and knowledge retrieval have all been verified against a live Salesforce environment.

My pull request is currently open and awaiting review.

View my Salesforce connector PR on GitHub

Why MergeTober Matters

I appreciate MergeTober's focus on building integrations that solve real problems. Code demonstrates what we build, while a practical blog post helps other developers understand why it matters and how they might use it.

Contributing to open source is an opportunity to learn, collaborate, and create tools that others can build upon.

A special thank you to Kunal Kushwaha, Founder of WeMakeDevs, for creating opportunities that encourage developers to contribute to meaningful open-source projects.

Thank you also to the Cognee team and community for building an open-source memory layer for AI agents and supporting its growing integration ecosystem.

Learn more about Cognee at cognee.ai.

Conclusion

My MergeTober contribution explores how Salesforce CRM data can become part of AI knowledge workflows through authentication, structured ingestion, incremental synchronization, and deletion handling.

With my local mocked tests passing and the pull request awaiting review, I look forward to continuing to improve the contribution through feedback and validation.

I'm excited to contribute to open source and explore how connected business knowledge can make AI applications more useful.

Top comments (0)