View as Markdown
Dappier icon

Dappier ACTION

Get Ask AI Logs

Retrieve raw Ask AI conversation logs (GET /v1/analytics/ask-ai/logs). Returns a data array of individual conversation rows (timestamp, prompt, response, widget, referring URL, interaction type) sorted newest-first, plus count and total_pages for pagination. All filters are optional; with no dates it defaults to the last 7 days (UTC). This is the row-level detail behind Get Ask AI Analytics. If total_pages in the response is greater than 1, call again with an incremented page to fetch the remaining rows. Example: limit=5 returns the 5 most recent conversations for the last 7 days; add page=2 to get the next 5. 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 Logs 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-logs",
  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 Logs 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
interactionType Interaction Type string
Filter to a single interaction type. Optional - omit to include all types.
Optional
page Page integer
1-based page number for pagination. Increment to page through results (see total_pages in the response). Defaults to 1.
Optional
limit Limit integer
Number of conversation rows per page. Min 1, max 500. Defaults to 50.
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-logs
Version
0.0.2
App
Dappier
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes