CONNECT APP
Build with Dappier
Monetizing the Shift from Pages to Agents
Artificial Intelligence (AI)
- API key
MCP
Give your agent Dappier tools
Every Dappier action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Dappier account for each tool call — you store no tokens.
// 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()
// e.g. run Get AI Recommendations:
const result = await mcp.callTool({
name: "dappier-get-ai-recommendations",
arguments: {
dataModelId: "Data Model ID",
query: "Query",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"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",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Get AI Recommendations:
result = await session.call_tool("dappier-get-ai-recommendations", {
"dataModelId": "Data Model ID",
"query": "Query",
})SDK
Run Dappier actions from your backend
Connect a user's Dappier account once, then run Get AI Recommendations on their behalf from your own code — TypeScript, Python, or plain HTTP.
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-ai-recommendations",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
dappier: { authProvisionId: "apn_xxxxxxx" },
dataModelId: "Data Model ID",
query: "Query",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="dappier-get-ai-recommendations",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"dappier": {"authProvisionId": "apn_xxxxxxx"},
"dataModelId": "Data Model ID",
"query": "Query",
},
)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-ai-recommendations",
"configured_props": {
"dappier": { "authProvisionId": "apn_xxxxxxx" },
"dataModelId": "Data Model ID",
"query": "Query"
}
}'TOOLS
Dappier actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Get AI Recommendations
actionGet AI-ranked content recommendations for a Dappier data model (POST/app/v2/search, withdata_model_idpassed as a query parameter). Returns a structuredresultsarray of ranked articles (title, summary, url, score, source, pubdate, etc.). Provide adataModelId(prefixdm_, e.g.dm_01hpsxyfm2fwdt2zet9cg6fdxt- a known real-time web search data model). NOTEdm_data-model IDs are distinct from theam_AI-model IDs used by Search Real-Time Data. There is no listing endpoint in the Dappier API; discover valid data model IDs in the Dappier Marketplace at https://platform.dappier.com/marketplace. Example:dataModelId=dm_01hpsxyfm2fwdt2zet9cg6fdxt,query=top technology stories todayreturns the top-ranked matching articles; passfields=["title","url","summary"]to trim each result to just those keys. See the documentation.Read-onlyv0.0.2 -
Get Ask AI Analytics
actionRetrieve aggregated Ask AI widget analytics (GET/v1/analytics/ask-ai). Returns asummary(widget loads, viewable/engagement sessions, clicks, session duration, etc.) plus adaily_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 passstartDate=2026-07-01andendDate=2026-08-01for a fixed window. See the documentation.Read-onlyv0.0.2 -
Get Ask AI Logs
actionRetrieve raw Ask AI conversation logs (GET/v1/analytics/ask-ai/logs). Returns adataarray of individual conversation rows (timestamp, prompt, response, widget, referring URL, interaction type) sorted newest-first, pluscountandtotal_pagesfor 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. Iftotal_pagesin the response is greater than 1, call again with an incrementedpageto fetch the remaining rows. Example:limit=5returns the 5 most recent conversations for the last 7 days; addpage=2to get the next 5. See the documentation.Read-onlyv0.0.2 -
Get Session Intelligence
actionRetrieve session-intelligence analytics for Ask AI widgets (GET/v1/analytics/session-intelligence). Returns a single top-levelsession_intelligenceobject wrapping all breakdowns -session_intelligence.summary,.engagement_timestats,.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 passwidgetId=wd_92831to scope to a single widget. See the documentation.Read-onlyv0.0.2 -
Get Sponsored Conversations Analytics
actionRetrieve aggregated sponsored-conversation (ad campaign) analytics (GET/v1/analytics/sponsored-conversations). Returns asummary(impressions, queries, sessions, clicks, conversion rate) plusdaily_breakdown,campaign_breakdown,prompt_breakdown, andclick_type_breakdown. All filters are optional; with no dates it defaults to the last 7 days (UTC). Example: call with no arguments for the last-7-days rollup, or passcampaignId=cp_...withstartDate/endDateto scope one campaign to a window. See the documentation.Read-onlyv0.0.2 -
Search Real-Time Data
actionPerform a real-time web/data search using a Dappier AI model (POST/app/aimodel/{ai_model_id}). Returns an AI-generatedmessagesynthesized from live web data. Provide anaiModelId(prefixam_, e.g.am_01j06ytn18ejftedz6dyhz2b15) - NOTE this endpoint takes AI-model IDs (am_), NOT data-model IDs (dm_); fordm_data models use Get AI Recommendations instead. There is no listing endpoint in the Dappier API; discover valid model IDs in the Dappier Marketplace at https://platform.dappier.com/marketplace. See the documentation.Read-onlyv0.0.2
EVENTS
Dappier triggers
Event sources your backend can deploy for users and receive through a webhook.
No Dappier triggers are available yet.
- App slug
- dappier
- Authentication
- API key
- Categories
- Artificial Intelligence (AI)
- Actions
- 6
- Triggers
- 0
- API proxy
- Not available