Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions apps/docs/content/docs/integrations/arxiv.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ Search for academic papers on ArXiv by keywords, authors, titles, or other field

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `papers` | json | Array of papers matching the search query |
| `papers` | array | Array of papers matching the search query |
| ↳ `authors` | array | |
| ↳ `categories` | array | |
| ↳ `comment` | string | |
| ↳ `journalRef` | string | |
| ↳ `doi` | string | |
| `totalResults` | number | Total number of results found for the search query |
| `query` | string | The search query that was executed |

</ReferenceDetails>

Expand All @@ -60,7 +66,12 @@ Get detailed information about a specific ArXiv paper by its ID.

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `paper` | json | Detailed information about the requested ArXiv paper |
| `paper` | object | Detailed information about the requested ArXiv paper |
| ↳ `authors` | array | |
| ↳ `categories` | array | |
| ↳ `comment` | string | |
| ↳ `journalRef` | string | |
| ↳ `doi` | string | |

</ReferenceDetails>

Expand All @@ -81,8 +92,14 @@ Search for papers by a specific author on ArXiv.

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `authorPapers` | json | Array of papers authored by the specified author |
| `authorPapers` | array | Array of papers authored by the specified author |
| ↳ `authors` | array | |
| ↳ `categories` | array | |
| ↳ `comment` | string | |
| ↳ `journalRef` | string | |
| ↳ `doi` | string | |
| `totalResults` | number | Total number of papers found for the author |
| `authorName` | string | The author name that was searched |

</ReferenceDetails>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/integrations/duckduckgo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Search the web using DuckDuckGo Instant Answers API. Returns instant answers, ab
| `definition` | string | Dictionary-style definition if available |
| `definitionSource` | string | The source of the definition |
| `definitionURL` | string | URL to the source of the definition |
| `image` | string | URL to an image related to the topic |
| `image` | string | Absolute URL to an image related to the topic |
| `answer` | string | Direct answer if available \(e.g., for calculations\) |
| `answerType` | string | Type of the answer \(e.g., calc, ip, etc.\) |
| `type` | string | Response type: A \(article\), D \(disambiguation\), C \(category\), N \(name\), E \(exclusive\) |
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/integrations/exa.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Search the web using Exa AI. Returns relevant search results with titles, URLs,
| --------- | ---- | -------- | ----------- |
| `query` | string | Yes | The search query to execute |
| `numResults` | number | No | Number of results to return \(1-100\). Default: 10 |
| `type` | string | No | Search type: "instant", "fast", "auto", "deep-lite", "deep", or "deep-reasoning". Default: "auto" |
| `type` | string | No | Search type: "auto", "lite", "deep-lite", or "deep" \("instant", "fast", and "deep-reasoning" are legacy\). Default: "auto" |
| `includeDomains` | string | No | Comma-separated list of domains to include in results \(e.g., "github.com, stackoverflow.com"\) |
| `excludeDomains` | string | No | Comma-separated list of domains to exclude from results \(e.g., "reddit.com, pinterest.com"\) |
| `category` | string | No | Filter by category: company, publication, news, personal site, financial report, people |
Expand Down
19 changes: 16 additions & 3 deletions apps/docs/content/docs/integrations/linkup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Search the web for information using Linkup
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `q` | string | Yes | The search query \(e.g., "latest AI research papers 2024"\) |
| `depth` | string | Yes | Search depth: "standard" for quick results, "deep" for comprehensive search |
| `depth` | string | Yes | Search depth: "flash" \(lowest latency\), "fast" \(one-shot retrieval\), "standard" \(single agentic pass\), or "deep" \(multi-step, most thorough\) |
| `outputType` | string | Yes | Output format: "sourcedAnswer" for AI-generated answer with citations, "searchResults" for raw results |
| `apiKey` | string | Yes | Enter your Linkup API key |
| `includeImages` | boolean | No | Whether to include images in search results |
Expand All @@ -42,13 +42,26 @@ Search the web for information using Linkup
| `includeDomains` | string | No | Comma-separated list of domain names to restrict search results to |
| `includeInlineCitations` | boolean | No | Add inline citations to answers \(only applies when outputType is "sourcedAnswer"\) |
| `includeSources` | boolean | No | Include sources in response |
| `maxResults` | number | No | Maximum number of results to return \(at least 1\) |

#### Output

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `answer` | string | The sourced answer to the search query |
| `sources` | array | Array of sources used to compile the answer, each containing name, url, and snippet |
| `answer` | string | The sourced answer to the search query \(Answer output type\) |
| `sources` | array | Sources used to compile the answer \(Answer output type\) |
| ↳ `name` | string | Title of the source |
| ↳ `url` | string | URL of the source |
| ↳ `snippet` | string | Text extracted from the source |
| ↳ `favicon` | string | Favicon URL |
| ↳ `publishedAt` | string | Publication date |
| `results` | array | Ranked text and image results \(Search output type\) |
| ↳ `type` | string | Result type: text or image |
| ↳ `name` | string | Title of the result |
| ↳ `url` | string | URL of the result |
| ↳ `content` | string | Extracted text content \(text results\) |
| ↳ `favicon` | string | Favicon URL |
| ↳ `publishedAt` | string | Publication date |

</ReferenceDetails>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/integrations/parallel_ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Search the web with Parallel AI and return matching pages with content excerpts.
| `objective` | string | No | Natural-language description of the search intent used to rank and excerpt results |
| `mode` | string | No | Search mode: turbo, fast, basic, or advanced \(default: advanced\) |
| `max_results` | number | No | Maximum number of results to return \(default: 10, max: 20\) |
| `max_chars_per_result` | number | No | Maximum characters of excerpts per result |
| `max_chars_per_result` | number | No | Maximum characters of excerpts per result. Sent as a total excerpt budget \(this value times max_results, default 10 results\) |
| `include_domains` | string | No | Comma-separated list of domains to restrict search results to |
| `exclude_domains` | string | No | Comma-separated list of domains to exclude from search results |
| `apiKey` | string | Yes | Parallel AI API Key |
Expand Down
7 changes: 7 additions & 0 deletions apps/docs/content/docs/integrations/perplexity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Generate completions using Perplexity AI chat models
| --------- | ---- | ----------- |
| `content` | string | Generated text content |
| `model` | string | Model used for generation |
| `citations` | array | URLs of the sources the answer cites |
| `search_results` | array | Search results the answer was grounded in |
| ↳ `title` | string | Title of the result page |
| ↳ `url` | string | URL of the result page |
| ↳ `date` | string | Publication date |
| ↳ `last_updated` | string | Last update date |
| ↳ `snippet` | string | Text snippet from the page |
| `usage` | object | Token usage information |
| ↳ `prompt_tokens` | number | Number of tokens in the prompt |
| ↳ `completion_tokens` | number | Number of tokens in the completion |
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/integrations/serper.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Search the web.

### Web Search

Search Google through the Serper.dev API for web, news, places, images, videos, shopping, scholar, or patent results. Available response sections include organic results, a knowledge graph, an answer box, related questions, related searches, and top stories.
Search Google through the Serper.dev API for web, news, places, images, videos, shopping, scholar, or patent results. Returns the ranked results for the chosen search type.

<ReferenceDetails>

Expand Down
7 changes: 4 additions & 3 deletions apps/docs/content/docs/integrations/tavily.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Perform AI-powered web searches using Tavily's search API. Returns structured re
| `query` | string | Yes | The search query to execute \(e.g., "latest AI research papers 2024"\) |
| `max_results` | number | No | Maximum number of results \(1-20, e.g., 5\) |
| `topic` | string | No | Category type: general, news, or finance \(e.g., "news"\) |
| `search_depth` | string | No | Search scope: basic \(1 credit\) or advanced \(2 credits\) \(e.g., "advanced"\) |
| `search_depth` | string | No | Search depth: basic \(1 credit\), advanced \(2 credits\), fast \(1 credit\), or ultra-fast \(1 credit\) \(e.g., "advanced"\) |
| `include_answer` | string | No | LLM-generated response: true/basic for quick answer or advanced for detailed \(e.g., "advanced"\) |
| `include_raw_content` | string | No | Parsed HTML content: true/markdown or text format \(e.g., "markdown"\) |
| `include_images` | boolean | No | Include image search results |
Expand Down Expand Up @@ -65,6 +65,7 @@ Perform AI-powered web searches using Tavily's search API. Returns structured re
| ↳ `description` | string | Image description |
| `auto_parameters` | object | Automatically selected parameters based on query intent \(if enabled\) |
| `response_time` | number | Time taken for the search request in seconds |
| `request_id` | string | Request identifier to share with Tavily support |

</ReferenceDetails>

Expand Down Expand Up @@ -97,6 +98,7 @@ Extract raw content from multiple web pages simultaneously using Tavily's extrac
| ↳ `url` | string | The URL that failed extraction |
| ↳ `error` | string | Error message describing why extraction failed |
| `response_time` | number | Time taken for the extraction request in seconds |
| `request_id` | string | Request identifier to share with Tavily support |

</ReferenceDetails>

Expand Down Expand Up @@ -165,8 +167,7 @@ Discover and visualize website structure using Tavily's map API. Maps out all ac
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `base_url` | string | The base URL that was mapped |
| `results` | array | Array of discovered URLs during mapping |
| ↳ `url` | string | Discovered URL |
| `results` | array | URLs discovered during mapping |
| `response_time` | number | Time taken for the map request in seconds |
| `request_id` | string | Unique identifier for support reference |

Expand Down
22 changes: 19 additions & 3 deletions apps/sim/blocks/blocks/arxiv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const ArxivBlock: BlockConfig = {
type: 'short-input',
placeholder: '10',
condition: { field: 'operation', value: 'arxiv_search' },
mode: 'advanced',
},
{
id: 'sortBy',
Expand All @@ -86,6 +87,7 @@ export const ArxivBlock: BlockConfig = {
],
value: () => 'relevance',
condition: { field: 'operation', value: 'arxiv_search' },
mode: 'advanced',
},
{
id: 'sortOrder',
Expand All @@ -97,6 +99,7 @@ export const ArxivBlock: BlockConfig = {
],
value: () => 'descending',
condition: { field: 'operation', value: 'arxiv_search' },
mode: 'advanced',
},
// Get Paper Details operation inputs
{
Expand All @@ -122,6 +125,7 @@ export const ArxivBlock: BlockConfig = {
type: 'short-input',
placeholder: '10',
condition: { field: 'operation', value: 'arxiv_get_author_papers' },
mode: 'advanced',
},
],
tools: {
Expand Down Expand Up @@ -161,12 +165,24 @@ export const ArxivBlock: BlockConfig = {
},
outputs: {
// Search output
papers: { type: 'json', description: 'Found papers data' },
papers: {
type: 'json',
description:
'Matching papers [{id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi}]',
},
totalResults: { type: 'number', description: 'Total results count' },
// Get Paper Details output
paper: { type: 'json', description: 'Paper details' },
paper: {
type: 'json',
description:
'Paper details (id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi)',
},
// Get Author Papers output
authorPapers: { type: 'json', description: 'Author papers list' },
authorPapers: {
type: 'json',
description:
'Papers by the author, newest first [{id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi}]',
},
},
}

Expand Down
3 changes: 2 additions & 1 deletion apps/sim/blocks/blocks/exa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const ExaBlock: BlockConfig = {
type: 'dropdown',
options: [
{ label: 'Auto', id: 'auto' },
{ label: 'Lite', id: 'lite' },
Comment thread
waleedlatif1 marked this conversation as resolved.
Resolved
{ label: 'Instant', id: 'instant' },
{ label: 'Fast', id: 'fast' },
{ label: 'Deep Lite', id: 'deep-lite' },
Expand Down Expand Up @@ -603,7 +604,7 @@ export const ExaBlock: BlockConfig = {
if (params.extrasImageLinks) {
result.extrasImageLinks = Number(params.extrasImageLinks)
}
if (params.maxAgeHours !== undefined && String(params.maxAgeHours).trim() !== '') {
if (params.maxAgeHours != null && String(params.maxAgeHours).trim() !== '') {
result.maxAgeHours = Number(params.maxAgeHours)
}
if (params.livecrawlTimeout) {
Expand Down
14 changes: 14 additions & 0 deletions apps/sim/blocks/blocks/jina.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { JinaAIIcon } from '@/components/icons'
import { AuthMode, type BlockConfig, type BlockMeta, IntegrationType } from '@/blocks/types'
import { mapperOperation, toolCallArg } from '@/blocks/utils'

export const JinaBlock: BlockConfig = {
type: 'jina',
Expand Down Expand Up @@ -169,6 +170,19 @@ export const JinaBlock: BlockConfig = {
tool: (params) => {
return params.operation || 'jina_read_url'
},
/**
* Search keeps its format and image settings under search-specific ids so they do not
* collide with Read URL's, and the tool reads them as `returnFormat` / `retainImages`.
*/
params: (params, context) => {
if (mapperOperation(params, context) !== 'jina_search') return {}
return {
returnFormat:
params.searchReturnFormat || toolCallArg(context, params.returnFormat) || undefined,
Comment thread
waleedlatif1 marked this conversation as resolved.
Resolved
retainImages:
params.searchRetainImages || toolCallArg(context, params.retainImages) || undefined,
}
},
},
},
inputs: {
Expand Down
21 changes: 19 additions & 2 deletions apps/sim/blocks/blocks/linkup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,18 @@ export const LinkupBlock: BlockConfig = {
options: [
{ label: 'Standard', id: 'standard' },
{ label: 'Deep', id: 'deep' },
{ label: 'Fast', id: 'fast' },
{ label: 'Flash', id: 'flash' },
],
value: () => 'standard',
},
{
id: 'maxResults',
title: 'Max Results',
type: 'short-input',
placeholder: 'Linkup default',
mode: 'advanced',
},
{
id: 'includeImages',
title: 'Include Images',
Expand Down Expand Up @@ -147,6 +156,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
includeImages: { type: 'boolean', description: 'Include images in results' },
includeInlineCitations: { type: 'boolean', description: 'Add inline citations to answers' },
includeSources: { type: 'boolean', description: 'Include sources in response' },
maxResults: { type: 'number', description: 'Maximum number of results to return' },
fromDate: { type: 'string', description: 'Start date for filtering (YYYY-MM-DD)' },
toDate: { type: 'string', description: 'End date for filtering (YYYY-MM-DD)' },
includeDomains: {
Expand All @@ -160,8 +170,15 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
},

outputs: {
answer: { type: 'string', description: 'Generated answer' },
sources: { type: 'json', description: 'Source references' },
answer: { type: 'string', description: 'Generated answer (Answer output type)' },
sources: {
type: 'json',
description: 'Answer sources [{name, url, snippet, favicon, publishedAt}]',
},
results: {
type: 'json',
description: 'Search output type results [{type, name, url, content, favicon, publishedAt}]',
},
},
}

Expand Down
17 changes: 16 additions & 1 deletion apps/sim/blocks/blocks/perplexity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const PerplexityBlock: BlockConfig = {
type: 'short-input',
placeholder: 'Maximum number of tokens',
condition: { field: 'operation', value: 'perplexity_chat' },
mode: 'advanced',
},
// Search operation inputs
{
Expand All @@ -102,6 +103,7 @@ export const PerplexityBlock: BlockConfig = {
type: 'short-input',
placeholder: '10',
condition: { field: 'operation', value: 'perplexity_search' },
mode: 'advanced',
},
{
id: 'search_domain_filter',
Expand All @@ -116,13 +118,15 @@ export const PerplexityBlock: BlockConfig = {
type: 'short-input',
placeholder: '1024',
condition: { field: 'operation', value: 'perplexity_search' },
mode: 'advanced',
},
{
id: 'country',
title: 'Country',
type: 'short-input',
placeholder: 'US, GB, DE, etc.',
condition: { field: 'operation', value: 'perplexity_search' },
mode: 'advanced',
},
{
id: 'search_recency_filter',
Expand All @@ -144,6 +148,7 @@ export const PerplexityBlock: BlockConfig = {
type: 'short-input',
placeholder: 'MM/DD/YYYY',
condition: { field: 'operation', value: 'perplexity_search' },
mode: 'advanced',
wandConfig: {
enabled: true,
prompt: `Generate a date in MM/DD/YYYY format based on the user's description for Perplexity search "after date" filter.
Expand All @@ -165,6 +170,7 @@ Return ONLY the date string in MM/DD/YYYY format - no explanations, no quotes, n
type: 'short-input',
placeholder: 'MM/DD/YYYY',
condition: { field: 'operation', value: 'perplexity_search' },
mode: 'advanced',
wandConfig: {
enabled: true,
prompt: `Generate a date in MM/DD/YYYY format based on the user's description for Perplexity search "before date" filter.
Expand Down Expand Up @@ -274,9 +280,18 @@ Return ONLY the date string in MM/DD/YYYY format - no explanations, no quotes, n
// Chat outputs
content: { type: 'string', description: 'Generated response' },
model: { type: 'string', description: 'Model used' },
citations: { type: 'json', description: 'Cited source URLs (chat)' },
search_results: {
type: 'json',
description:
'Sources the chat answer was grounded in [{title, url, date, last_updated, snippet}]',
},
usage: { type: 'json', description: 'Token usage' },
// Search outputs
results: { type: 'json', description: 'Search results array' },
results: {
type: 'json',
description: 'Search results [{title, url, snippet, date, last_updated}]',
},
},
}

Expand Down
Loading
Loading