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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "dappier-get-ask-ai-logs",
"configured_props": {
"dappier": { "authProvisionId": "apn_xxxxxxx" },
"startDate": "Start Date",
"endDate": "End Date"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "dappier",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "dappier-get-ask-ai-logs",
arguments: {
startDate: "Start Date",
endDate: "End Date",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗