User Activity Digest
Generate a comprehensive activity summary for a JSONPlaceholder user.
Steps
- Fetch user profile using
get_userwith the specified user ID - Fetch user's posts using
list_postsfiltered by user ID - Fetch user's todos using
get_user_todoswith the user ID - For each post, fetch comments using
get_post_comments - Compile the digest with the following sections:
Output Format
# Activity Digest: {user.name} (@{user.username})
## Profile
- Email: {email}
- Company: {company.name}
- Website: {website}
## Posts ({count})
For each post:
- **{title}** — {comment_count} comments
## Todos
- Completed: {completed_count}/{total_count} ({percentage}%)
- Pending items: {list of incomplete todo titles}
## Summary
Brief narrative summary of the user's activity level.
Notes
- JSONPlaceholder has 10 users (IDs 1-10)
- Each user has ~10 posts and ~20 todos
- All data is static/fake — useful for testing and demos