Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

PostHog Workflows Tutorial: i18n, Push Notifications & Webhooks

At the beginning of the year, PostHog released Workflows from beta. At B42, we had been using PostHog for analytics for over a year, but our customer journeys ran in a separate tool. Now after migrating to PostHog Workflow we have…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

At the beginning of the year, PostHog released Workflows from beta. At B42, we had been using PostHog for analytics for over a year, but our customer journeys ran in a separate tool. Now after migrating to PostHog Workflow we have everything in one tool. After the Workflows release, we migrated everything in 2 days. Here's what we learned.



The cool thing is that workflows can be built independently of your code. Only the events need to be triggered. This makes it easy for non-developers to build workflows and customer journeys.






Getting started






Sending emails



Email sending is very easy to configure and set up. Four DNS entries need to be made, which are displayed directly in the setup window. Once the entries are verified, the email address is marked as verified and can be used for email sending.



Email channel configuration






Building Email Templates



Templates are very helpful for sending emails. When creating templates, various components such as text, buttons, HTML elements, or images can be used.



With templates, the email structure can be built once, so that when integrating an email step, only the text needs to be changed.



Building email templates



In the template itself, global settings such as colors, font, or alignment can also be configured.



Email settings






Building workflows



Building workflows is very intuitive. First, a trigger for the workflow is selected. This can be a specific event, a manual trigger, a webhook, tracking pixel, or schedule.



Further steps and actions can be added, like emails, webhooks or third party integrations like Slack.



Small workflow example



There's always an exit. You can also define earlier exists if certain conditions match.






Small hacks



During the implementation of workflows, we encountered some smaller challenges, such as messaging in different languages or sending push notifications.






i18n



Currently, it's not yet directly possible to translate texts. However, Conditional Branches can be used to check variables and customize the further course of the flow depending on conditions.



We check the user's language with Conditional Branches, which we store in the person. This allows us to split the flow based on language and ensure that the user receives emails or push notifications in the correct language.





As a prerequisite, you need to sync the language code of the user with PostHog. The default value can be used for a fallback language like English.






Sending Push Notifications



Sending push notifications is currently not yet possible. As a workaround, webhooks can be used. You can integrate an endpoint in your application that receives a POST request with a specific body.




{
"title": "Hello Max",
"message": "Welcome to our application",
"deeplink": "http://localhost:3000/welcome"
}






If Firebase Cloud Messaging is already integrated in your backend and the users' message tokens are stored, you can directly send the push notification to the user.




import { Response, Request } from 'express';

const secret = 'random-secret-string';

export async function POST(req: Request, res: Response) {
// Validate secret that not everybody can send push notifications
if (req.headers['x-webhook-secret'] !== secret) {
return res.status(401).json({
error: 'Invalid webhook secret',
});
}

const userId = req.body.userId;
const message = req.body.message;
const title = req.body.title;
const deeplink = req.body.deeplink;

if (!userId || !message || !title) {
return res.status(400).json({
error: 'Missing userId, message, or title',
});
}

// send push notification
await sendPushNotification({ userId, title, message, deeplink });

return res.status(200).json({ success: true });
}






Variables for Content Personalization



Variables from the event or user can also be used in the JSON body to personalize the content.



Webhook Example



Using Custom Header Fields



To prevent your webhook from being misused, you can also send custom header fields, such as x-webhook-secret=random-value. If the value doesn't match the defined secret, you can return a 401 Unauthorized error.



Outlook



It probably won't be long before push notifications are directly supported in PostHog, making the workaround obsolete. This is already mentioned in the roadmap and documentation.



However, the webhook can continue to be used to execute internal processing or processes.






Using variables in emails or webhooks



Like push notifications, emails can be personalized with template syntax.



Typical use cases include the email address, which can be retrieved with {{ person.properties.email }}. This accesses the person property email.



Variables in emails



The same can be done for other variables like the name {{person.properties.firstname}}. If-conditions can also be used or workflow variables can be accessed {{ variables.NAME }}.






Automations



In addition to messaging workflows, automation workflows exist. These can be used to set user properties once an event has been executed. A typical use case is when the user has completed onboarding.



Setting person property






Using delays



Another exciting feature is delays, which allow waiting for a defined period after an event. For example, after an event like user_created, a welcome email can be sent to the user after five minutes.



Example delay






Webhook Logs



For webhooks, it's recommended to activate logs. This logs the requests as well as the status codes of the responses. This makes debugging and error analysis much easier.



Webhook logs






Common issues & solutions



There are some common issues which we experienced during implementation.



Issue: Workflow not triggering

Solution: Check event name matches exactly (case-sensitive)



Issue: Variables not rendering

Solution: Ensure property exists before workflow trigger



Issue: Email not sending

Solution: Check if the sender is selected correctly



Issue: Webhook request without body

Solution: Check if Content-Type header is set correctly, e.g. application/json






What's next?



We've built 15+ workflows at B42 since migrating from welcome sequences to multi-language onboarding. What challenges are you facing with customer journey automation? Drop a comment or connect with me on LinkedIn!






Further resources



Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten PostHog Workflows Tutorial: i18n, Push Notifications & Webhooks

Thematisch verwandte Begriffe: PostHog, Workflows, Tutorial, i18n · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94494 | jshERP through 3.6 contains a tenant isolation bypass vulnerability that…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick