View as Markdown
DataForB2B icon

DataForB2B ACTION

Reasoning Search

Run a live reasoning-based search. Use this when you want the reasoning engine to iteratively interpret a natural-language query and return relevant people or company results. This is distinct from Agentic Search, which performs a one-shot LLM search. Provide a natural-language query and a category (people or company). See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's DataForB2B account once, then configure and run Reasoning Search from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "dataforb2b-reasoning-search",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dataforb2b: { authProvisionId: "apn_xxxxxxx" },
    query: "Query",
    category: "Category",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Reasoning Search inputs
Property Type Description
query Query string
Natural language search query (minimum 3 characters).
Required
category Category string
Whether to search people or companies.
Required
maxResults Max Results integer
Maximum number of results to return.
Optional
sessionId Session ID string
Session identifier returned by a previous call. Send it back to answer questions or refine the same search.
Optional
enrichLive Enrich Live boolean
Whether to enrich results with live data (default: true).
Optional
answers Answers object
Answers to the questions asked by the reasoning engine in a previous needs_input response, as an object mapping question ID to answer. Example: {"q_abc123": "France", "q_def456": "fintech"}. Requires Session ID to be set.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
dataforb2b-reasoning-search
Version
0.0.3
App
DataForB2B
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes