Skip to content
activations logo

Activations

activations

Query activation logs to check for errors and view volume

SKILL.md

Full skill instructions

Activations

Treasue Data's real time services include digital marketing activations. These are sent to various destinations. This skill can be used to query the database table that stores activations logs for both successful and failed activations, which is a source of useful information for the digital marketer.

Description

Requirements

In order to query the activation log we must know the parent segment the customer is interested in. A customer may have a number of parent segments so we must ask them to provide the one they are interested before making a query. A segment ID will be a numeric value like 411671.

The user must also have a correctly configured Treasure Data mcp server to enable the database lookup @treasuredata/​mcp-server

In addition the api key with appropriate access to the database table should be available and configured.

Database

The database name contains the parent segment ID and has this format cdp_audience_394649_rt. This is where you can plug in the parent segment the user gives in the request.

Activations table

The activation log table is always called activations and is in the Parent Segment real time database.

Schema

The activations table has the following schema. The format is of the schema below is:

  1. Schema column index (example 1)
  2. Column name (example time)
  3. Query Column name (example time) (generally can be ignored for activations)
  4. Data type (string, time, int)

1 time time int 2 delivered delivered string

3 status status long

4 timestamp timestamp long

5 activation_type activation_type string

6 log_time log_time long

7 journey_name journey_name string

8 journey_stage_name journey_stage_name string

9 activation_name activation_name string

10 rid rid string

11 error error string

12 activation_id activation_id string

13 event_id event_id string

14 response response string

For the purposes of making queries and talking about activations with the user here are the meanings of the columns.

time - epoch time of the activation send attempt delivered - true if successfully sent and false otherwise status - numeric status code corresponding to http response return codes timestamp activation_type - the text name of the activation. td_webhook_out for example log_time - journey_name - The real time journey this is related to. For example journey_11738 journey_stage_name - The stage of the real time journey. For example journey_stage_15055. activation_name - Customer's name for the activation. For example first activation_14136 error - When an error occurs the text will be here. For example "AxiosError: Request failed with status code 404" activation_id - Unique identifier of the activation. event_id - Unique identifier for the event which triggered the activation. response - Contains text that was returned from the activation server. This occurs whether or not the request succeeded. Example {"success":false,"error":{"message":"Token \"c58dd43b-5bbc-4d21-a81a-e8c5643bcc18\" not found","id":""}} It can be useful to show the response when errors are involved.

Query tips

If the user does not specify a time range assume the last 24 hours. Use a where clause like TD_INTERVAL(time, '-1d/​now') When users are asking "What kind of errors are occuring" focus on unique error status and error texts so they can quickly identify issues. Provide summary data where appropriate. For example the customer may ask for "Which journeys are triggering the most activations", or "group the number of activations by journey". Use unique and other SQL constructs to make useful aggregations on the data.

More Marketing skills

copywriting logo
Marketing

copywriting

Marketing copy for homepages, landing pages, pricing pages, and other conversion-focused web pages.

53.3K 216.1K
View
flux-2-klein logo
Marketing

flux-2-klein

Fast image generation with Flux 2 Klein, optimized for sub-second iteration and multi-reference brand styling.

52 176.2K
View

Psychological principles and mental models for understanding customer behavior and influencing marketing decisions.

53.3K 153K
View

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
ai-seo logo
Marketing

ai-seo

Optimize content for discovery, citation, and visibility across AI search platforms and LLM assistants.

53.3K 136.7K
View
copy-editing logo
Marketing

copy-editing

Systematic improvement of existing marketing copy through seven focused editing passes.

53.3K 136.4K
View

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View
revops logo
Marketing

revops

Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.

53.3K 104.9K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Convert websites into professional HyperFrames videos with guided storyboarding and brand-aligned composition.

57K 93.5K
View

Sales & marketing AI tools

KreadoAI logo
Sales & marketing

KreadoAI

Revolutionize Video Creation with AI-Generated Avatars and Voices

Paid
View
Followr logo
Sales & marketing

Followr

Social media on autopilot

Paid
View
Logodiffusion logo
Sales & marketing

Logodiffusion

Design custom logos instantly with AI.

Paid
View
I
Sales & marketing

Ideogram

Text-heavy marketing and design images

Freemium
View
Prompt Silo logo
Sales & marketing

Prompt Silo

Boost Your SEO with Content and SEO Silos

Free
View
Marketing Blocks logo
Sales & marketing

Marketing Blocks

Revolutionize Your Marketing with AI-Powered MarketingBlocks!

Paid
View
Scrip AI logo
Sales & marketing

Scrip AI

10X faster & free AI content creation for 100+ use cases

Free
View
T
Sales & marketing

Tribescaler

Tribescaler | Make Your Tweets Go Viral

Paid
View