CompanyEnrich company enrichment component and agent tool

Open
#4,179 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
ai, api

Research direction

First check whether maintainers want this integration in the repository, then read existing Haystack integration packages and their standard CI scaffolding for conventions. The issue names no specific files or tests, so use those examples to locate the component, tool, and test entry points. Done means the domain-based enricher and agent tool, mocked sync/async and error tests, serialization coverage, documentation, example, and CI are reviewed and added.

Written by the indexing model from the issue text.

Description

new integration P3

Summary and motivation

Propose a CompanyEnrich component for company research workflows: retrieve a company profile by domain and expose it as an agent tool or pipeline input. It would preserve the provider's JSON fields rather than inventing a common company schema. This is a focused company-intelligence integration, not a document store or model provider.

Adoption signals

  • GitHub stars / Python SDK downloads: not applicable to the hosted API; I have not identified a maintained official Python SDK and do not claim PyPI adoption figures.
  • Release activity: the public API documentation and changelog are maintained at https://docs.companyenrich.com/.
  • Maintenance: CompanyEnrich operates the commercial API at https://api.companyenrich.com/ and publishes its docs and MCP server configuration.
  • Haystack community demand: I did not find an existing CompanyEnrich request in this repository. This proposal is provider-driven, rather than evidence of existing Haystack demand.
  • Existing integrations: the official integrations page lists Clay, Cargo, Databar, n8n and Intercom: https://companyenrich.com/integrations.

I understand the maintenance burden for core integrations. If this scope is better maintained outside this repository, an independently maintained Haystack component is also a reasonable path.

Detailed design

Start with CompanyEnrichCompanyEnricher, a Haystack component taking a required domain and returning profile: dict. A named CompanyEnrichCompanyEnricherTool wraps it for agents. Keep the first contribution limited to domain enrichment; search and lookalikes can be assessed separately.

  • Endpoint: GET /companies/enrich?domain=..., authenticated with a Bearer API key. Public schema: https://docs.companyenrich.com/reference/get_companies-enrich.
  • Credentials: Secret.from_env_var("COMPANYENRICH_API_KEY"), resolved at warm-up, never serialized as a literal token.
  • Configuration: positive finite timeout; configurable retry count, defaulting to zero retries because successful data calls cost credits. Invalid domains are rejected before HTTP calls.
  • Sync and native async calls use Haystack's request helpers. Preserve HTTP failures (401 credentials, 402 credits, 404 missing company, 429 rate limits) and the original profile JSON.
  • Tests: mocked HTTP requests, success and errors, input validation, missing keys, sync/async parity, idempotent warm-up, and non-default serialization round trips. Live tests would require a provider key and consume credits; none are claimed yet.
  • Include a small pipeline/tool example, API docs, package metadata and the repository's standard integration CI scaffolding.

This proposal and implementation are AI-assisted. No unsupported adoption metrics or live authenticated test results are claimed.

Checklist

  • Maintainers assess whether this belongs in core integrations
  • Component, tool wrapper and tests reviewed
  • Documentation and CI added
  • Maintainer-controlled package release and catalog listing, if accepted
Dominant language
Python
Stars
212
Forks
396
Avg merge
2d 9h
Merged PRs (30d)
95

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from deepset-ai/haystack-core-integrations

All issues in deepset-ai/haystack-core-integrations

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.