View as Markdown
Dappier icon

Dappier ACTION

Get Session Intelligence

Retrieve session-intelligence analytics for Ask AI widgets (GET /v1/analytics/session-intelligence). Returns a single top-level session_intelligence object wrapping all breakdowns - session_intelligence.summary, .engagement_time stats, .intent_breakdown, .top_queried_topics, .category_distribution (IAB categories), and a fixed 7-bucket .session_engagement_distribution (query-depth). All filters are optional; with no dates it defaults to the last 7 days (UTC). Example: call with no arguments for last-7-days intent and topic breakdowns, or pass widgetId=wd_92831 to scope to a single widget. See the documentation.
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Dappier account once, then configure and run Get Session Intelligence 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: "dappier-get-session-intelligence",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dappier: { authProvisionId: "apn_xxxxxxx" },
    startDate: "Start Date",
    endDate: "End Date",
  },
})

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.

Get Session Intelligence inputs
Property Type Description
startDate Start Date string
Inclusive start of the reporting window in YYYY-MM-DD format, interpreted as UTC (e.g. 2026-08-01). Optional - when omitted, defaults to 6 days before the End Date (a trailing 7-day window). The window between Start Date and End Date must not exceed 365 days.
Optional
endDate End Date string
Inclusive end of the reporting window in YYYY-MM-DD format, interpreted as UTC (e.g. 2026-08-28). Optional - defaults to today if omitted. Must be on or after Start Date, and the window between them must not exceed 365 days.
Optional
widgetId Widget ID string
Filter results to a single widget by its external ID (e.g. wd_92831). Optional - omit to include all widgets. The Dappier API exposes no listing endpoint; find widget IDs in the Dappier platform at https://platform.dappier.com.
Optional
placementId Placement ID string
Filter results to a single placement by its external ID. Optional - omit to include all placements. The Dappier API exposes no listing endpoint; find placement IDs in the Dappier platform at https://platform.dappier.com.
Optional
deploymentType Deployment Type string
Filter by deployment type, exact match (e.g. brand_agent, sponsored_conversation, embed, widget). Optional - omit to include all deployment types.
Optional
creativeId Creative ID string
Filter by DSP/ad-tracking creative ID. Optional - omit to include all creatives.
Optional
lineItemId Line Item ID string
Filter by DSP/ad-tracking line item ID. Optional - omit to include all line items.
Optional
publisherId Publisher ID string
Filter by publisher ID (Dianomi traffic only). Optional - omit to include all publishers.
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
dappier-get-session-intelligence
Version
0.0.2
App
Dappier
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes