Documentation Index
Fetch the complete documentation index at: https://docs.tapti.dev/llms.txt
Use this file to discover all available pages before exploring further.
Audience Demographic Analysis
This example demonstrates a simple workflow to retrieve and analyze audience demographics across social media platforms using the MCP server.Basic Workflow
Implementation Steps
To implement demographic analysis functionality, follow these simple steps:-
Get Users: Use
get-users-by-tenant-appto retrieve all users -
Get User Accounts: Use
get-user-accountswith the selected user’s ID to retrieve their connected social media accounts -
Get Demographics: Use
get-account-demographicswith the account ID to retrieve demographic data -
Get Age Breakdown: Use
get-audience-age-breakdownwith the account ID for detailed age distribution - Present Analysis: Display the demographic data in a clear, organized format
Audience Demographic Data Types
When analyzing audience demographics, you can access these data types:| Data Type | Description | Available Breakdowns |
|---|---|---|
| Gender | Gender distribution of audience | Male, Female |
| Age | Age breakdown of audience | 18-24, 25-34, 35-44, 45-54, 55+ |
| Location | Geographic distribution | Countries, sometimes cities |
| Interests | Interest categories (when available) | Varies by platform |
| Activity Times | Peak engagement times (when available) | Time of day, day of week |
Required MCP Tools
This implementation uses these tools:get-users-by-tenant-app- Lists all usersget-user-accounts- Lists user’s social media accountsget-account-demographics- Gets gender and location distributionget-audience-age-breakdown- Gets detailed age demographic data
Advanced Analysis Techniques
Here are some ways to derive deeper insights from demographic data:- Cross-Platform Comparison: Compare demographics across different platforms to identify platform-specific strategies
- Content Performance by Demographic: Analyze which content performs best with specific demographic segments
- Demographic Trend Analysis: Track changes in demographics over time to identify growing audience segments
- Audience-Content Alignment: Ensure content strategy aligns with the preferences of key demographic groups
- Competitive Benchmarking: Compare your audience demographics to industry standards or competitors
Prompt Engineering Tips
When designing prompts for your AI assistant to handle demographic analysis, consider:- Data visualization descriptions - Describe charts or graphs in text to make the data more understandable
- Comparative analysis - Enable comparisons between platforms, time periods, or industry benchmarks
- Actionable insights - Don’t just present data; explain what it means and how to use it
- Personalization level - Allow users to request different levels of detail or focus areas
- Market-specific context - Consider regional or cultural context when interpreting demographic data
