Skip to content

Commit 31444f9

Browse files
committed
feat(integrations): add CompanyEnrich company data tools
1 parent 5f2b8cd commit 31444f9

23 files changed

Lines changed: 796 additions & 7 deletions

File tree

‎apps/docs/components/icons.tsx‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10347,3 +10347,33 @@ export function PlaneIcon(props: SVGProps<SVGSVGElement>) {
1034710347
</svg>
1034810348
)
1034910349
}
10350+
10351+
export function CompanyEnrichIcon(props: SVGProps<SVGSVGElement>) {
10352+
return (
10353+
<svg {...props} viewBox='0 0 127 127' fill='none' xmlns='http://www.w3.org/2000/svg'>
10354+
<rect width='127' height='127' rx='15' fill='url(#companyenrich-gradient)' />
10355+
<path
10356+
d='M55.671 98.736C52.713 98.736 49.754 97.565 47.501 95.233L24.389 71.322C19.87 66.648 19.87 59.092 24.389 54.417L47.501 30.506C52.019 25.831 59.323 25.831 63.841 30.506C68.36 35.181 68.36 42.736 63.841 47.411L48.899 62.87L63.841 78.328C68.36 83.003 68.36 90.559 63.841 95.233C61.588 97.565 58.63 98.736 55.671 98.736Z'
10357+
fill='white'
10358+
/>
10359+
<path
10360+
d='M72.168 98.736C69.21 98.736 66.252 97.565 63.998 95.233C59.48 90.559 59.48 83.003 63.998 78.328L78.94 62.87L63.998 47.411C59.48 42.736 59.48 35.181 63.998 30.506C68.517 25.831 75.82 25.831 80.338 30.506L103.451 54.417C107.969 59.092 107.969 66.648 103.451 71.322L80.338 95.233C78.085 97.565 75.127 98.736 72.168 98.736Z'
10361+
fill='white'
10362+
fillOpacity='0.71'
10363+
/>
10364+
<defs>
10365+
<linearGradient
10366+
id='companyenrich-gradient'
10367+
x1='63.5'
10368+
y1='0'
10369+
x2='63.5'
10370+
y2='127'
10371+
gradientUnits='userSpaceOnUse'
10372+
>
10373+
<stop stopColor='#1488CC' />
10374+
<stop offset='1' stopColor='#086CD9' />
10375+
</linearGradient>
10376+
</defs>
10377+
</svg>
10378+
)
10379+
}

‎apps/docs/components/ui/icon-mapping.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import {
6464
CodaIcon,
6565
CodeIcon,
6666
CodePipelineIcon,
67+
CompanyEnrichIcon,
6768
ConditionalIcon,
6869
ConfluenceIcon,
6970
ConnectIcon,
@@ -372,6 +373,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
372373
cloudwatch: CloudWatchIcon,
373374
coda: CodaIcon,
374375
codepipeline: CodePipelineIcon,
376+
companyenrich: CompanyEnrichIcon,
375377
condition: ConditionalIcon,
376378
confluence: ConfluenceIcon,
377379
confluence_v2: ConfluenceIcon,
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
title: CompanyEnrich
3+
description: Enrich, search, and discover similar companies
4+
integration:
5+
type: "companyenrich"
6+
color: "#1488CC"
7+
---
8+
9+
10+
{/* MANUAL-CONTENT-START:intro */}
11+
[CompanyEnrich](https://companyenrich.com/) provides company profiles, company search, and lookalike discovery.
12+
13+
Obtain an API key from the [CompanyEnrich dashboard](https://app.companyenrich.com/) and enter it in **API Key** without the `Bearer` prefix. Choose **Enrich Company** and enter a domain such as `example.com` to retrieve its profile. A missing record produces an HTTP 404 error.
14+
15+
Search and lookalike operations return one page per execution. **Page Size** defaults to 10 and supports 1–100 companies; increment **Page** to retrieve more. The page number multiplied by page size cannot exceed 10,000. Every additional page can consume credits. Similar-company results include a `scores` object keyed by company UUID.
16+
17+
Profiles expose name, domain, website, description, industry, employee and revenue ranges, founding year, and technologies. Unknown scalar fields remain null; missing technology lists become empty arrays. These operations do not request workforce expansions or provide people/contact data.
18+
19+
See the official [enrichment](https://docs.companyenrich.com/reference/get_companies-enrich), [search](https://docs.companyenrich.com/reference/post_companies-search), and [similar-company](https://docs.companyenrich.com/reference/post_companies-similar) references for credit costs and account requirements.
20+
{/* MANUAL-CONTENT-END */}
21+
22+
23+
## Use the block [#usage-instructions]
24+
25+
Look up company profiles by domain, search company names and domains, and discover lookalike accounts. Enrichment costs 1 credit per call; search costs 1 credit per result (1 minimum); similar-company discovery costs 5 per result (5 minimum).
26+
27+
## Actions
28+
29+
### CompanyEnrich Enrich Company
30+
31+
Enrich one company by domain. Costs 1 CompanyEnrich credit per call.
32+
33+
#### Input
34+
35+
| Parameter | Type | Required | Description |
36+
| --------- | ---- | -------- | ----------- |
37+
| `apiKey` | string | Yes | CompanyEnrich API key without the Bearer prefix |
38+
| `domain` | string | Yes | Company domain, for example example.com |
39+
40+
#### Output
41+
42+
| Parameter | Type | Description |
43+
| --------- | ---- | ----------- |
44+
| `company` | object | Enriched company profile |
45+
| ↳ `id` | string | Company UUID |
46+
| ↳ `name` | string | Company name |
47+
| ↳ `domain` | string | Primary company domain |
48+
| ↳ `website` | string | Company website URL |
49+
| ↳ `description` | string | Company description |
50+
| ↳ `industry` | string | Primary industry |
51+
| ↳ `employees` | string | Employee count range |
52+
| ↳ `revenue` | string | Annual revenue range in USD |
53+
| ↳ `founded_year` | number | Year founded |
54+
| ↳ `technologies` | array | Technologies used |
55+
56+
### CompanyEnrich Search Companies
57+
58+
Search company names and domains. Costs 1 credit per result, with a 1-credit minimum per request.
59+
60+
#### Input
61+
62+
| Parameter | Type | Required | Description |
63+
| --------- | ---- | -------- | ----------- |
64+
| `apiKey` | string | Yes | CompanyEnrich API key without the Bearer prefix |
65+
| `query` | string | Yes | Search query applied to company names and domains |
66+
| `page` | number | No | One-based page number \(default 1\) |
67+
| `pageSize` | number | No | Companies per page, 1–100 \(default 10\). Each result consumes credits. |
68+
69+
#### Output
70+
71+
| Parameter | Type | Description |
72+
| --------- | ---- | ----------- |
73+
| `items` | array | Matching companies |
74+
| ↳ `id` | string | Company UUID |
75+
| ↳ `name` | string | Company name |
76+
| ↳ `domain` | string | Primary company domain |
77+
| ↳ `website` | string | Company website URL |
78+
| ↳ `description` | string | Company description |
79+
| ↳ `industry` | string | Primary industry |
80+
| ↳ `employees` | string | Employee count range |
81+
| ↳ `revenue` | string | Annual revenue range in USD |
82+
| ↳ `founded_year` | number | Year founded |
83+
| ↳ `technologies` | array | Technologies used |
84+
| `page` | number | Current page number |
85+
| `totalPages` | number | Total available pages |
86+
| `totalItems` | number | Total matching companies |
87+
88+
### CompanyEnrich Find Similar Companies
89+
90+
Find lookalike companies from a seed domain. Costs 5 credits per result, with a 5-credit minimum per request.
91+
92+
#### Input
93+
94+
| Parameter | Type | Required | Description |
95+
| --------- | ---- | -------- | ----------- |
96+
| `apiKey` | string | Yes | CompanyEnrich API key without the Bearer prefix |
97+
| `domain` | string | Yes | Company domain, for example example.com |
98+
| `page` | number | No | One-based page number \(default 1\) |
99+
| `pageSize` | number | No | Companies per page, 1–100 \(default 10\). Each result consumes credits. |
100+
101+
#### Output
102+
103+
| Parameter | Type | Description |
104+
| --------- | ---- | ----------- |
105+
| `items` | array | Matching companies |
106+
| ↳ `id` | string | Company UUID |
107+
| ↳ `name` | string | Company name |
108+
| ↳ `domain` | string | Primary company domain |
109+
| ↳ `website` | string | Company website URL |
110+
| ↳ `description` | string | Company description |
111+
| ↳ `industry` | string | Primary industry |
112+
| ↳ `employees` | string | Employee count range |
113+
| ↳ `revenue` | string | Annual revenue range in USD |
114+
| ↳ `founded_year` | number | Year founded |
115+
| ↳ `technologies` | array | Technologies used |
116+
| `page` | number | Current page number |
117+
| `totalPages` | number | Total available pages |
118+
| `totalItems` | number | Total matching companies |
119+
| `scores` | json | Similarity scores keyed by company UUID, from 0 to 1 |
120+
121+

‎apps/docs/content/docs/integrations/meta.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"cloudwatch",
4949
"coda",
5050
"codepipeline",
51+
"companyenrich",
5152
"confluence",
5253
"context_dev",
5354
"convex",
Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
import { CompanyEnrichIcon } from '@/components/icons'
2+
import type { BlockConfig, BlockMeta } from '@/blocks/types'
3+
import { AuthMode, IntegrationType } from '@/blocks/types'
4+
5+
export const CompanyEnrichBlock: BlockConfig = {
6+
type: 'companyenrich',
7+
name: 'CompanyEnrich',
8+
description: 'Enrich, search, and discover similar companies',
9+
longDescription:
10+
'Look up company profiles by domain, search company names and domains, and discover lookalike accounts. Enrichment costs 1 credit per call; search costs 1 credit per result (1 minimum); similar-company discovery costs 5 per result (5 minimum).',
11+
docsLink: 'https://docs.sim.ai/integrations/companyenrich',
12+
category: 'tools',
13+
integrationType: IntegrationType.Sales,
14+
authMode: AuthMode.ApiKey,
15+
bgColor: '#1488CC',
16+
icon: CompanyEnrichIcon,
17+
canvasPresentation: {
18+
defaultTitle: 'CompanyEnrich',
19+
sentences: {
20+
byOperation: {
21+
enrich: [{ text: 'Enrich company', field: 'domain', core: true }],
22+
search: [{ text: 'Search companies for', field: 'query', core: true }],
23+
similar: [{ text: 'Find companies similar to', field: 'domain', core: true }],
24+
},
25+
},
26+
},
27+
subBlocks: [
28+
{
29+
id: 'operation',
30+
title: 'Operation',
31+
type: 'dropdown',
32+
options: [
33+
{ label: 'Enrich Company', id: 'enrich' },
34+
{ label: 'Search Companies', id: 'search' },
35+
{ label: 'Find Similar Companies', id: 'similar' },
36+
],
37+
value: () => 'enrich',
38+
},
39+
{
40+
id: 'domain',
41+
title: 'Company Domain',
42+
type: 'short-input',
43+
placeholder: 'example.com',
44+
required: true,
45+
condition: { field: 'operation', value: ['enrich', 'similar'] },
46+
},
47+
{
48+
id: 'query',
49+
title: 'Search Query',
50+
type: 'short-input',
51+
placeholder: 'Enter a company name or domain',
52+
required: true,
53+
condition: { field: 'operation', value: 'search' },
54+
},
55+
{
56+
id: 'page',
57+
title: 'Page',
58+
type: 'short-input',
59+
placeholder: 'Defaults to 1',
60+
mode: 'advanced',
61+
condition: { field: 'operation', value: ['search', 'similar'] },
62+
},
63+
{
64+
id: 'pageSize',
65+
title: 'Page Size',
66+
type: 'short-input',
67+
placeholder: '1 to 100 (defaults to 10)',
68+
mode: 'advanced',
69+
condition: { field: 'operation', value: ['search', 'similar'] },
70+
},
71+
{
72+
id: 'apiKey',
73+
title: 'API Key',
74+
type: 'short-input',
75+
placeholder: 'Enter your CompanyEnrich API key',
76+
password: true,
77+
required: true,
78+
},
79+
],
80+
tools: {
81+
access: ['companyenrich_enrich', 'companyenrich_search', 'companyenrich_similar'],
82+
config: {
83+
tool: (params) => `companyenrich_${params.operation}`,
84+
params: (params) => ({
85+
...params,
86+
page: params.page === undefined || params.page === '' ? undefined : Number(params.page),
87+
pageSize:
88+
params.pageSize === undefined || params.pageSize === ''
89+
? undefined
90+
: Number(params.pageSize),
91+
}),
92+
},
93+
},
94+
inputs: {
95+
apiKey: { type: 'string', description: 'CompanyEnrich API key' },
96+
domain: { type: 'string', description: 'Company domain' },
97+
query: { type: 'string', description: 'Company name or domain search' },
98+
page: { type: 'number', description: 'One-based page number' },
99+
pageSize: { type: 'number', description: 'Companies per page (1–100)' },
100+
},
101+
outputs: {
102+
company: { type: 'json', description: 'Enriched company profile' },
103+
items: { type: 'json', description: 'Matching company profiles' },
104+
page: { type: 'number', description: 'Current page number' },
105+
totalPages: { type: 'number', description: 'Total available pages' },
106+
totalItems: { type: 'number', description: 'Total matching companies' },
107+
scores: { type: 'json', description: 'Similarity scores keyed by company UUID' },
108+
},
109+
}
110+
111+
export const CompanyEnrichBlockMeta = {
112+
tags: ['enrichment', 'sales-engagement'],
113+
url: 'https://companyenrich.com',
114+
templates: [
115+
{
116+
icon: CompanyEnrichIcon,
117+
title: 'CompanyEnrich lead qualification',
118+
prompt:
119+
'When a company domain arrives, enrich it and return a qualification summary using industry and employee range.',
120+
modules: ['agent', 'workflows'],
121+
category: 'sales',
122+
tags: ['enrichment'],
123+
},
124+
{
125+
icon: CompanyEnrichIcon,
126+
title: 'CompanyEnrich CRM field audit',
127+
prompt:
128+
'For each supplied CRM company domain, enrich the profile and return suggested values for missing name, industry, and website fields. Do not overwrite CRM records.',
129+
modules: ['agent', 'workflows'],
130+
category: 'sales',
131+
tags: ['enrichment'],
132+
},
133+
{
134+
icon: CompanyEnrichIcon,
135+
title: 'CompanyEnrich account research',
136+
prompt:
137+
'When given a target company domain, enrich the company and produce a research brief with its description and technology stack.',
138+
modules: ['agent', 'workflows'],
139+
category: 'sales',
140+
tags: ['enrichment'],
141+
},
142+
{
143+
icon: CompanyEnrichIcon,
144+
title: 'CompanyEnrich lookalike shortlist',
145+
prompt:
146+
'Given a best-customer domain, find ten similar companies and rank the shortlist using returned similarity scores.',
147+
modules: ['agent', 'workflows'],
148+
category: 'sales',
149+
tags: ['enrichment'],
150+
},
151+
{
152+
icon: CompanyEnrichIcon,
153+
title: 'CompanyEnrich competitor discovery',
154+
prompt:
155+
'Given a competitor domain, find similar companies and summarize their industries and descriptions for review.',
156+
modules: ['agent', 'workflows'],
157+
category: 'sales',
158+
tags: ['enrichment'],
159+
},
160+
{
161+
icon: CompanyEnrichIcon,
162+
title: 'CompanyEnrich company discovery',
163+
prompt:
164+
'When a user provides a company-name query, search the first page and return a table of matching names, domains, and industries.',
165+
modules: ['agent', 'workflows'],
166+
category: 'sales',
167+
tags: ['enrichment'],
168+
},
169+
{
170+
icon: CompanyEnrichIcon,
171+
title: 'CompanyEnrich technology qualification',
172+
prompt:
173+
'Given a list of company domains and a target technology, enrich each company and flag records whose returned technologies include that technology.',
174+
modules: ['agent', 'workflows'],
175+
category: 'sales',
176+
tags: ['enrichment'],
177+
},
178+
],
179+
skills: [
180+
{
181+
name: 'research-company',
182+
description: 'Research an account from its domain',
183+
content:
184+
'# Research an account from its domain\n\nUse companyenrich_enrich on the supplied domain. Summarize its company name, industry, employee range, description, and technologies. Keep unavailable fields unknown.\n\nCheck the credit cost before requesting additional records or pages.\n\nSources: https://companyenrich.com/ and https://docs.companyenrich.com/docs/getting-started.',
185+
},
186+
{
187+
name: 'fill-company-gaps',
188+
description: 'Suggest missing company fields for CRM records',
189+
content:
190+
'# Suggest missing company fields for CRM records\n\nFor each supplied domain, use companyenrich_enrich. Compare its fields to the supplied CRM record and return suggested missing values without editing the CRM.\n\nCheck the credit cost before requesting additional records or pages.\n\nSources: https://companyenrich.com/ and https://docs.companyenrich.com/docs/getting-started.',
191+
},
192+
{
193+
name: 'find-lookalike-accounts',
194+
description: 'Build a lookalike account shortlist',
195+
content:
196+
'# Build a lookalike account shortlist\n\nUse companyenrich_similar with a customer domain and a bounded page size. Rank results by scores and return company names and domains.\n\nCheck the credit cost before requesting additional records or pages.\n\nSources: https://companyenrich.com/ and https://docs.companyenrich.com/docs/getting-started.',
197+
},
198+
{
199+
name: 'discover-competitors',
200+
description: 'Explore companies similar to a competitor',
201+
content:
202+
'# Explore companies similar to a competitor\n\nUse companyenrich_similar with the supplied competitor domain. Compare descriptions and industries; describe results as candidates, not proven competitors.\n\nCheck the credit cost before requesting additional records or pages.\n\nSources: https://companyenrich.com/ and https://docs.companyenrich.com/docs/getting-started.',
203+
},
204+
{
205+
name: 'qualify-company-technology',
206+
description: 'Check the reported technology stack of target accounts',
207+
content:
208+
'# Check the reported technology stack of target accounts\n\nUse companyenrich_enrich for each supplied company domain. Compare technologies with the user-provided target and flag matches and unknowns.\n\nCheck the credit cost before requesting additional records or pages.\n\nSources: https://companyenrich.com/ and https://docs.companyenrich.com/docs/getting-started.',
209+
},
210+
],
211+
} as const satisfies BlockMeta

0 commit comments

Comments
 (0)