-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(integrations): add brandfetch integration #3402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| --- | ||
| title: Brandfetch | ||
| description: Look up brand assets, logos, colors, and company info | ||
| --- | ||
|
|
||
| import { BlockInfoCard } from "@/components/ui/block-info-card" | ||
|
|
||
| <BlockInfoCard | ||
| type="brandfetch" | ||
| color="#000000" | ||
| /> | ||
|
|
||
| ## Usage Instructions | ||
|
|
||
| Integrate Brandfetch into your workflow. Retrieve brand logos, colors, fonts, and company data by domain, ticker, or name search. | ||
|
|
||
|
|
||
|
|
||
| ## Tools | ||
|
|
||
| ### `brandfetch_get_brand` | ||
|
|
||
| Retrieve brand assets including logos, colors, fonts, and company info by domain, ticker, ISIN, or crypto symbol | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `apiKey` | string | Yes | Brandfetch API key | | ||
| | `identifier` | string | Yes | Brand identifier: domain \(nike.com\), stock ticker \(NKE\), ISIN \(US6541061031\), or crypto symbol \(BTC\) | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `id` | string | Unique brand identifier | | ||
| | `name` | string | Brand name | | ||
| | `domain` | string | Brand domain | | ||
| | `claimed` | boolean | Whether the brand profile is claimed | | ||
| | `description` | string | Short brand description | | ||
| | `longDescription` | string | Detailed brand description | | ||
| | `links` | array | Social media and website links | | ||
| | ↳ `name` | string | Link name \(e.g., twitter, linkedin\) | | ||
| | ↳ `url` | string | Link URL | | ||
| | `logos` | array | Brand logos with formats and themes | | ||
| | ↳ `type` | string | Logo type \(logo, icon, symbol, other\) | | ||
| | ↳ `theme` | string | Logo theme \(light, dark\) | | ||
| | ↳ `formats` | array | Available formats with src URL, format, width, and height | | ||
| | `colors` | array | Brand colors with hex values and types | | ||
| | ↳ `hex` | string | Hex color code | | ||
| | ↳ `type` | string | Color type \(accent, dark, light, brand\) | | ||
| | ↳ `brightness` | number | Brightness value | | ||
| | `fonts` | array | Brand fonts with names and types | | ||
| | ↳ `name` | string | Font name | | ||
| | ↳ `type` | string | Font type \(title, body\) | | ||
| | ↳ `origin` | string | Font origin \(google, custom, system\) | | ||
| | `company` | json | Company firmographic data including employees, location, and industries | | ||
| | `qualityScore` | number | Data quality score from 0 to 1 | | ||
| | `isNsfw` | boolean | Whether the brand contains adult content | | ||
|
|
||
| ### `brandfetch_search` | ||
|
|
||
| Search for brands by name and find their domains and logos | ||
|
|
||
| #### Input | ||
|
|
||
| | Parameter | Type | Required | Description | | ||
| | --------- | ---- | -------- | ----------- | | ||
| | `apiKey` | string | Yes | Brandfetch API key | | ||
| | `name` | string | Yes | Company or brand name to search for | | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `results` | array | List of matching brands | | ||
| | ↳ `brandId` | string | Unique brand identifier | | ||
| | ↳ `name` | string | Brand name | | ||
| | ↳ `domain` | string | Brand domain | | ||
| | ↳ `claimed` | boolean | Whether the brand profile is claimed | | ||
| | ↳ `icon` | string | Brand icon URL | | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
| "asana", | ||
| "ashby", | ||
| "attio", | ||
| "brandfetch", | ||
| "browser_use", | ||
| "calcom", | ||
| "calendly", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| import { BrandfetchIcon } from '@/components/icons' | ||
| import type { BlockConfig } from '@/blocks/types' | ||
| import { AuthMode } from '@/blocks/types' | ||
| import type { BrandfetchGetBrandResponse, BrandfetchSearchResponse } from '@/tools/brandfetch/types' | ||
|
|
||
| export const BrandfetchBlock: BlockConfig<BrandfetchGetBrandResponse | BrandfetchSearchResponse> = { | ||
| type: 'brandfetch', | ||
| name: 'Brandfetch', | ||
| description: 'Look up brand assets, logos, colors, and company info', | ||
| longDescription: | ||
| 'Integrate Brandfetch into your workflow. Retrieve brand logos, colors, fonts, and company data by domain, ticker, or name search.', | ||
| docsLink: 'https://docs.sim.ai/tools/brandfetch', | ||
| category: 'tools', | ||
| bgColor: '#000000', | ||
| icon: BrandfetchIcon, | ||
| authMode: AuthMode.ApiKey, | ||
|
|
||
| subBlocks: [ | ||
| { | ||
| id: 'operation', | ||
| title: 'Operation', | ||
| type: 'dropdown', | ||
| options: [ | ||
| { label: 'Get Brand', id: 'get_brand' }, | ||
| { label: 'Search Brands', id: 'search' }, | ||
| ], | ||
| value: () => 'get_brand', | ||
| }, | ||
| { | ||
| id: 'identifier', | ||
| title: 'Identifier', | ||
| type: 'short-input', | ||
| placeholder: 'e.g., nike.com, NKE, BTC', | ||
| required: { field: 'operation', value: 'get_brand' }, | ||
| condition: { field: 'operation', value: 'get_brand' }, | ||
| }, | ||
| { | ||
| id: 'name', | ||
| title: 'Brand Name', | ||
| type: 'short-input', | ||
| placeholder: 'e.g., Nike', | ||
| required: { field: 'operation', value: 'search' }, | ||
| condition: { field: 'operation', value: 'search' }, | ||
| }, | ||
| { | ||
| id: 'apiKey', | ||
| title: 'API Key', | ||
| type: 'short-input', | ||
| placeholder: 'Enter your Brandfetch API key', | ||
| required: true, | ||
| password: true, | ||
| }, | ||
| ], | ||
|
|
||
| tools: { | ||
| access: ['brandfetch_get_brand', 'brandfetch_search'], | ||
| config: { | ||
| tool: (params) => { | ||
| switch (params.operation) { | ||
| case 'get_brand': | ||
| return 'brandfetch_get_brand' | ||
| case 'search': | ||
| return 'brandfetch_search' | ||
| default: | ||
| return 'brandfetch_get_brand' | ||
| } | ||
| }, | ||
| }, | ||
| }, | ||
|
|
||
| inputs: { | ||
| operation: { type: 'string', description: 'Operation to perform' }, | ||
| identifier: { | ||
| type: 'string', | ||
| description: 'Brand identifier (domain, ticker, ISIN, or crypto symbol)', | ||
| }, | ||
| name: { type: 'string', description: 'Brand name to search for' }, | ||
| apiKey: { type: 'string', description: 'Brandfetch API key' }, | ||
| }, | ||
|
|
||
| outputs: { | ||
| id: { type: 'string', description: 'Unique brand identifier' }, | ||
| name: { type: 'string', description: 'Brand name' }, | ||
| domain: { type: 'string', description: 'Brand domain' }, | ||
| claimed: { type: 'boolean', description: 'Whether the brand profile is claimed' }, | ||
| description: { type: 'string', description: 'Short brand description' }, | ||
| longDescription: { type: 'string', description: 'Detailed brand description' }, | ||
| links: { type: 'array', description: 'Social media and website links' }, | ||
| logos: { type: 'array', description: 'Brand logos with formats and themes' }, | ||
| colors: { type: 'array', description: 'Brand colors with hex values' }, | ||
| fonts: { type: 'array', description: 'Brand fonts' }, | ||
| company: { type: 'json', description: 'Company firmographic data' }, | ||
| qualityScore: { type: 'number', description: 'Data quality score (0-1)' }, | ||
| isNsfw: { type: 'boolean', description: 'Adult content indicator' }, | ||
| results: { type: 'array', description: 'Search results with brand name, domain, and icon' }, | ||
| }, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.