View as Markdown
Dappier icon

Dappier ACTION

Get Ask AI Analytics

Retrieve aggregated Ask AI widget analytics (GET /v1/analytics/ask-ai). Returns a summary (widget loads, viewable/engagement sessions, clicks, session duration, etc.) plus a daily_breakdown. All filters are optional; with no dates it defaults to the last 7 days (UTC). Use Get Ask AI Logs for the raw per-conversation rows behind these numbers. Example: call with no arguments to get the last-7-days summary, or pass startDate=2026-07-01 and endDate=2026-08-01 for a fixed window. 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 Ask AI Analytics 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-ask-ai-analytics",
  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 Ask AI Analytics 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-ask-ai-analytics
Version
0.0.2
App
Dappier
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes