> For the complete documentation index, see [llms.txt](https://agpt.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agpt.co/docs/integrations/block-integrations/enrich.md).

# DataForB2B Enrich

Blocks for enriching companies and LinkedIn profiles using DataForB2B's B2B database — firmographics, headcount, work/personal email, phone, and GitHub discovery.

## Company Enrichment

### What it is

Look up and enrich a company using DataForB2B's B2B database — firmographics, headcount/size, industry, domain and social profiles from a company domain, name or LinkedIn URL. Account enrichment for B2B sales and CRM.

### How it works

The block trims the provided `company_identifier` and rejects empty values before sending it to DataForB2B's company enrichment endpoint. The API resolves the identifier (domain, name, or LinkedIn company URL) against its B2B database and returns firmographic data such as industry, headcount, funding, and social profiles. Client and server errors from the API are caught and surfaced via the `error` output instead of raising an exception; identifiers that cannot be resolved may return an empty result.

### Inputs

| Input               | Description                                     | Type | Required |
| ------------------- | ----------------------------------------------- | ---- | -------- |
| company\_identifier | Company domain, name, or LinkedIn URL to enrich | str  | Yes      |

### Outputs

| Output | Description                           | Type            |
| ------ | ------------------------------------- | --------------- |
| error  | Error message if the operation failed | str             |
| result | Full company enrichment response      | Dict\[str, Any] |

### Possible use case

**Account Enrichment**: Enrich inbound leads or CRM records with firmographic data before routing them to sales.

**Target Account Research**: Pull company size, industry, and funding stage to qualify accounts for an ABM campaign.

**CRM Cleanup**: Resolve a company domain or LinkedIn URL into current firmographic data before deduplicating records.

***

## Profile Enrichment

### What it is

Look up and enrich a professional profile from a LinkedIn URL using DataForB2B's B2B database — returns the full profile (current role, experience and skills) plus work email, personal email and GitHub. Works as an email finder for lead enrichment, contact enrichment, cold outreach and CRM. Disable enrich\_profile if you only need the email/GitHub lookups.

### How it works

The block trims the provided `profile_identifier` (a LinkedIn profile URL or id) and rejects empty values before sending it to DataForB2B's profile enrichment endpoint along with the requested `enrich_*` flags. `enrich_profile` is enabled by default and returns the full profile; when every flag is false, the block enables `enrich_profile` so the API still receives a valid request. Client and server errors from the API are caught and surfaced via the `error` output instead of raising an exception; unavailable contact fields may be absent from the result.

### Inputs

| Input                   | Description                                                 | Type | Required |
| ----------------------- | ----------------------------------------------------------- | ---- | -------- |
| profile\_identifier     | LinkedIn profile URL (or profile id) to enrich              | str  | Yes      |
| enrich\_profile         | Return the full LinkedIn profile (role, experience, skills) | bool | No       |
| enrich\_work\_email     | Find the professional / work email                          | bool | No       |
| enrich\_personal\_email | Find the personal email                                     | bool | No       |
| enrich\_github          | Find the GitHub profile                                     | bool | No       |

### Outputs

| Output | Description                           | Type            |
| ------ | ------------------------------------- | --------------- |
| error  | Error message if the operation failed | str             |
| result | Full enrichment response              | Dict\[str, Any] |

### Possible use case

**Email Finder**: Resolve a work or personal email address from a LinkedIn profile URL for cold outreach.

**Lead Enrichment**: Enrich a prospect list with current role, experience, and skills pulled straight from LinkedIn.

**Contact Verification**: Refresh a saved contact from a LinkedIn profile URL before routing it into an outreach sequence.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/enrich.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
