AACFlow

Amplitude

Track events and query analytics from Amplitude

Usage Instructions

Integrate Amplitude into your workflow to track events, identify users and groups, search for users, query analytics, and retrieve revenue data.

Tools

amplitude_send_event

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
userIdstringNoNo description
deviceIdstringNoNo description
eventTypestringYesName of the event (e.g., "page_view", "purchase")
eventPropertiesstringNoNo description
userPropertiesstringNoJSON object of user properties to set (supports $set, $setOnce, $add, $append, $unset)
timestringNoNo description
sessionIdstringNoNo description
insertIdstringNoNo description
appVersionstringNoNo description
platformstringNoPlatform (e.g., "Web", "iOS", "Android")
countrystringNoNo description
languagestringNoLanguage code (e.g., "en")
ipstringNoNo description
pricestringNoNo description
quantitystringNoNo description
revenuestringNoNo description
productIdstringNoNo description
revenueTypestringNoRevenue type (e.g., "purchase", "refund")

Output

ParameterTypeDescription
codenumberResponse code (200 for success)
eventsIngestednumberNumber of events ingested
payloadSizeBytesnumberSize of the payload in bytes
serverUploadTimenumberServer upload timestamp

amplitude_identify_user

Set user properties in Amplitude using the Identify API. Supports $set, $setOnce, $add, $append, $unset operations.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
userIdstringNoNo description
deviceIdstringNoNo description
userPropertiesstringYesJSON object of user properties. Use operations like $set, $setOnce, $add, $append, $unset.

Output

ParameterTypeDescription
codenumberHTTP response status code
messagestringResponse message

amplitude_group_identify

Set group-level properties in Amplitude. Supports $set, $setOnce, $add, $append, $unset operations.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
groupTypestringYesGroup classification (e.g., "company", "org_id")
groupValuestringYesSpecific group identifier (e.g., "Acme Corp")
groupPropertiesstringYesJSON object of group properties. Use operations like $set, $setOnce, $add, $append, $unset.

Output

ParameterTypeDescription
codenumberHTTP response status code
messagestringResponse message

Search for a user by User ID, Device ID, or Amplitude ID using the Dashboard REST API.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description
userstringYesNo description

Output

ParameterTypeDescription
matchesarrayList of matching users
amplitudeIdnumberAmplitude internal user ID
userIdstringExternal user ID
typestringMatch type (e.g., match_user_or_device_id)

amplitude_user_activity

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description
amplitudeIdstringYesNo description
offsetstringNoNo description
limitstringNoNo description
directionstringNoSort direction: "latest" or "earliest" (default: latest)

Output

ParameterTypeDescription
eventsarrayList of user events
eventTypestringType of event
eventTimestringEvent timestamp
eventPropertiesjsonCustom event properties
userPropertiesjsonUser properties at event time
sessionIdnumberSession ID
platformstringPlatform
countrystringCountry
citystringCity
userDatajsonUser metadata
userIdstringExternal user ID
canonicalAmplitudeIdnumberCanonical Amplitude ID
numEventsnumberTotal event count
numSessionsnumberTotal session count
platformstringPrimary platform
countrystringCountry

amplitude_user_profile

Get a user profile including properties, cohort memberships, and computed properties.

Input

ParameterTypeRequiredDescription
secretKeystringYesNo description
userIdstringNoNo description
deviceIdstringNoNo description
getAmpPropsstringNoNo description
getCohortIdsstringNoNo description
getComputationsstringNoNo description

Output

ParameterTypeDescription
userIdstringExternal user ID
deviceIdstringDevice ID
ampPropsjsonAmplitude user properties (library, first_used, last_used, custom properties)
cohortIdsarrayList of cohort IDs the user belongs to
computationsjsonComputed user properties

amplitude_event_segmentation

Query event analytics data with segmentation. Get event counts, uniques, averages, and more.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description
eventTypestringYesNo description
startstringYesNo description
endstringYesNo description
metricstringNoMetric type: uniques, totals, pct_dau, average, histogram, sums, value_avg, or formula (default: uniques)
intervalstringNoNo description
groupBystringNoProperty name to group by (prefix custom user properties with "gp:")
limitstringNoNo description

Output

ParameterTypeDescription
seriesjsonTime-series data arrays indexed by series
seriesLabelsarrayLabels for each data series
seriesCollapsedjsonCollapsed aggregate totals per series
xValuesarrayDate values for the x-axis

amplitude_get_active_users

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description
startstringYesNo description
endstringYesNo description
metricstringNoMetric type: "active" or "new" (default: active)
intervalstringNoNo description

Output

ParameterTypeDescription
seriesjsonArray of data series with user counts per time interval
seriesMetaarrayMetadata labels for each data series (e.g., segment names)
xValuesarrayDate values for the x-axis

amplitude_realtime_active_users

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description

Output

ParameterTypeDescription
seriesjsonArray of data series with active user counts at 5-minute intervals
seriesLabelsarrayLabels for each series (e.g., "Today", "Yesterday")
xValuesarrayTime values for the x-axis (e.g., "15:00", "15:05")

amplitude_list_events

List all event types in the Amplitude project with their weekly totals and unique counts.

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description

Output

ParameterTypeDescription
eventsarrayList of event types in the project
valuestringEvent type name
displayNamestringEvent display name
totalsnumberWeekly total count
hiddenbooleanWhether the event is hidden
deletedbooleanWhether the event is deleted

amplitude_get_revenue

Input

ParameterTypeRequiredDescription
apiKeystringYesNo description
secretKeystringYesNo description
startstringYesNo description
endstringYesNo description
metricstringNoNo description
intervalstringNoNo description

Output

ParameterTypeDescription
seriesjsonArray of revenue data series
seriesLabelsarrayLabels for each data series
xValuesarrayDate values for the x-axis

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started