# Create a daily PostHog activity slide

Query one PostHog project daily for event count and distinct IDs in the trailing seven days. Create a Google Slides presentation with the aggregate counts. Select a PostHog project and review the schedule before activating. Each run creates a presentation.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=scheduled-posthog-activity-to-google-slides&templateName=Create+a+daily+PostHog+activity+slide)

**Required accounts**

- PostHog
- Google Slides

## Workflow steps

### 1. Trigger · Daily schedule

**Schedule**. Run automatically on the configured schedule.

### 2. Action · Query seven days of PostHog activity

**PostHog**. Official PostHog query operation. List responses include the provider's next URL for pagination.

### 3. Transformation · Build the activity overview slide

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 4. Action · Create the report presentation

**Google Slides**. Creates a blank presentation using the title given in the request. If a \`presentationId\` is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated. Other fields in the request, including any provided content, are ignored. Returns the created presentation.

### 5. Action · Fill in the activity slide

**Google Slides**. Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies: the reply to the third request, and another empty reply, in that order. Because other users may be editing the presentation, the presentation might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the presentation should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.

## Set up your workflow

1. **Copy the template** Open the template in FastHook to create an editable Workflow Draft.
2. **Connect your accounts** Connect your accounts for PostHog, Google Slides.
3. **Review the Workflow** Review the Steps, field mappings, routes, and provider settings.
4. **Activate** Activate the Workflow when the Draft is ready, then verify a test run.

## Questions about this template

### Does the template copy someone else's credentials?

No. FastHook creates a disconnected Draft. Connect your own PostHog, Google Slides accounts before activation.

### Can I change the Steps and mappings?

Yes. The copied Workflow is an editable Draft. Review every Step, input, mapping, and route before you activate it.

### What is copied into my workspace?

FastHook recreates the Trigger configuration, Action Steps, routes, and mappings with new IDs. Provider accounts, credentials, and secrets are never copied.

### When does the Workflow start running?

Only after you connect the required accounts, finish the configuration, and explicitly activate the Draft.

## Related integrations

- [PostHog integrations](https://www.fasthook.io/apps/posthog/integrations)
- [Google Slides integrations](https://www.fasthook.io/apps/google-slides/integrations)
- [Schedule trigger](https://www.fasthook.io/docs/triggers/schedule)

## Related workflow templates

- [Create a Google Docs digest of top PostHog events](https://www.fasthook.io/templates/scheduled-posthog-top-events-to-google-docs.md): On a daily schedule, create a Google Doc with the ten most frequent PostHog event names over the preceding seven days.
