Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(cdp): add WhatsApp Cloud API destination (#60057)

Meikel Ratzc7840acc2d05
diff --git a/frontend/public/services/whatsapp.svg b/frontend/public/services/whatsapp.svg
new file mode 100644
index 000000000000..be2827a17ef3
--- /dev/null
+++ b/frontend/public/services/whatsapp.svg
@@ -0,0 +1,179 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="293.5px"
+ height="293.5px" viewBox="0 0 293.5 293.5" enable-background="new 0 0 293.5 293.5" xml:space="preserve">
+<g id="background_1_" enable-background="new ">
+</g>
+<g id="WhatsApp_Logo_Icon_1_">
+ <g id="Icon_xA0_影像_1_">
+
+ <image overflow="visible" width="587" height="587" id="Icon_xA0_影像" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkwAAAJOCAYAAABFrFjIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAA
+GXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAIEdJREFUeNrs3QmUZFWdJ+CXWVl7
+scgiu1Y7LFXsqIAKKK0FiLi1jApSsjh267gcB9RBxenTM624nWmn8fTY47TK3nTruCI7jbaAgCJQ
+YLG4sJXsUEJBLVlLzP9mvKyMinoZEblExvZ95/zyZWVGRkbeCA6/c9+N+7IMAAAAACaizxB0v9PW
+/7eBOMzMMys/zogM5P9Ox+k1Pu/Pb5/MrrjrmQWvoXS7aUYdNrM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VKRekJM0gKE+UiNTcv
+S9vkhWluRWGqLk4pcyoyO8+siuPMPDOMLkDTrI4M5sdVFceUlZEX8s9fyItRdVEazvLhwhTFaKVh
+VZiYeKmal5epuXk5Gi5Ns6pK03BZmllRoGZUfQ2AxovRmooM5sfKr6+qKk3DhWllnqFyZP8jhYn2
+LVqzK4rScGmabWQAGlKqKEbDRWlNFJ81hgYAAAAAGN3/F2AARC0jccnxSFwAAAAASUVORK5CYII=" transform="matrix(0.5 0 0 0.5 0 0)">
+ </image>
+ </g>
+ <g id="WA_Logo">
+ <g>
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M223.777,70.979c-19.623-19.646-45.719-30.47-73.522-30.482
+ c-57.288,0-103.914,46.623-103.937,103.929c-0.007,18.318,4.778,36.198,13.874,51.961l-14.745,53.858l55.098-14.453
+ c15.181,8.28,32.273,12.645,49.668,12.651h0.043c57.282,0,103.912-46.629,103.936-103.936
+ C254.202,116.737,243.4,90.624,223.777,70.979z M150.256,230.89h-0.035c-15.501-0.006-30.705-4.171-43.968-12.042l-3.155-1.871
+ l-32.696,8.576l8.727-31.878l-2.054-3.27c-8.647-13.753-13.215-29.65-13.208-45.974c0.019-47.63,38.772-86.38,86.424-86.38
+ c23.073,0.008,44.764,9.005,61.074,25.335c16.31,16.329,25.286,38.033,25.277,61.116
+ C236.623,192.136,197.87,230.89,150.256,230.89z M197.641,166.189c-2.597-1.299-15.364-7.582-17.745-8.449
+ c-2.38-0.865-4.112-1.299-5.843,1.301c-1.731,2.6-6.709,8.449-8.224,10.183c-1.515,1.732-3.03,1.95-5.626,0.649
+ c-2.598-1.299-10.965-4.042-20.885-12.89c-7.72-6.886-12.932-15.39-14.447-17.991c-1.515-2.6-0.162-4.005,1.139-5.3
+ c1.168-1.164,2.597-3.034,3.896-4.55s1.731-2.6,2.597-4.333s0.433-3.25-0.217-4.549c-0.649-1.301-5.843-14.084-8.007-19.284
+ c-2.108-5.063-4.249-4.378-5.843-4.458c-1.513-0.075-3.246-0.092-4.978-0.092c-1.731,0-4.544,0.65-6.925,3.25
+ c-2.38,2.6-9.089,8.883-9.089,21.666c0,12.783,9.305,25.131,10.604,26.865c1.298,1.733,18.313,27.964,44.364,39.214
+ c6.195,2.676,11.033,4.273,14.805,5.471c6.222,1.977,11.883,1.697,16.357,1.029c4.99-0.746,15.365-6.283,17.529-12.349
+ c2.164-6.067,2.164-11.267,1.515-12.35C201.969,168.14,200.238,167.49,197.641,166.189z"/>
+ </g>
+ </g>
+</g>
+</svg>
diff --git a/frontend/src/lib/components/CyclotronJob/CyclotronJobInputs.tsx b/frontend/src/lib/components/CyclotronJob/CyclotronJobInputs.tsx
index 12c037c68d2c..5bb1d291a6f3 100644
--- a/frontend/src/lib/components/CyclotronJob/CyclotronJobInputs.tsx
+++ b/frontend/src/lib/components/CyclotronJob/CyclotronJobInputs.tsx
@@ -24,6 +24,7 @@ import { LemonField } from 'lib/lemon-ui/LemonField'
import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown/LemonMarkdown'
import { CodeEditorInline } from 'lib/monaco/CodeEditorInline'
import { CodeEditorResizeable } from 'lib/monaco/CodeEditorResizable'
+import { Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList } from 'lib/ui/quill'
import { capitalizeFirstLetter, objectsEqual, uuid } from 'lib/utils'
import { copyToClipboard } from 'lib/utils/copyToClipboard'
@@ -406,6 +407,61 @@ function BooleanField({
)
}
+type SearchableChoice = { value: any; label: string }
+
+function SearchableChoiceCombobox({
+ value,
+ onChange,
+ choices,
+ disabled,
+}: {
+ value: any
+ onChange: (value: any) => void
+ choices: SearchableChoice[]
+ disabled?: boolean
+}): JSX.Element {
+ // Mirrors quill's `InputInsidePopup` combobox story: LemonButton as the trigger,
+ // ComboboxInput rendered inside ComboboxContent so the search field stays visible on
+ // open. Combobox primitive auto-scrolls the active item into view but the input lives
+ // outside the scrolling list, so it doesn't get pushed offscreen.
+ const [open, setOpen] = useState(false)
+ const triggerRef = useRef<HTMLButtonElement>(null)
+ const selectedLabel = choices.find((choice) => choice.value === value)?.label ?? null
+
+ return (
+ <Combobox
+ items={choices}
+ itemToStringValue={(choice: SearchableChoice) => choice.label}
+ open={open}
+ onOpenChange={setOpen}
+ value={choices.find((choice) => choice.value === value) ?? null}
+ onValueChange={(choice: SearchableChoice | null) => onChange(choice ? choice.value : null)}
+ >
+ <LemonButton
+ ref={triggerRef}
+ type="secondary"
+ fullWidth
+ disabled={disabled}
+ onClick={() => setOpen((prev) => !prev)}
+ className="ph-no-capture"
+ >
+ {selectedLabel ?? <span className="text-secondary">Select a value</span>}
+ </LemonButton>
+ <ComboboxContent anchor={triggerRef}>
+ <ComboboxInput placeholder="Search" showTrigger={false} />
+ <ComboboxEmpty>No items found</ComboboxEmpty>
+ <ComboboxList>
+ {(choice: SearchableChoice) => (
+ <ComboboxItem key={String(choice.value)} value={choice}>
+ {choice.label}
+ </ComboboxItem>
+ )}
+ </ComboboxList>
+ </ComboboxContent>
+ </Combobox>
+ )
+}
+
type CyclotronJobInputProps = {
schema: CyclotronJobInputSchemaType
input: CyclotronJobInputType
@@ -454,6 +510,16 @@ function CyclotronJobInputRenderer({
/>
)
case 'choice':
+ if (schema.searchable) {
+ return (
+ <SearchableChoiceCombobox
+ value={input.value}
+ onChange={onValueChange}
+ choices={schema.choices ?? []}
+ disabled={disabled}
+ />
+ )
+ }
return (
<LemonSelect
fullWidth
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 40e90a56fcfc..b3d2b8d7feb6 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -6523,6 +6523,8 @@ export type CyclotronJobInputSchemaType = {
key: string
label: string
choices?: { value: string; label: string }[]
+ /** For `choice` inputs: render as a searchable select instead of a plain dropdown. */
+ searchable?: boolean
required?: boolean
default?: any
secret?: boolean
diff --git a/nodejs/src/cdp/templates/_destinations/whatsapp/whatsapp.template.test.ts b/nodejs/src/cdp/templates/_destinations/whatsapp/whatsapp.template.test.ts
new file mode 100644
index 000000000000..2f88346474eb
--- /dev/null
+++ b/nodejs/src/cdp/templates/_destinations/whatsapp/whatsapp.template.test.ts
@@ -0,0 +1,182 @@
+import { DateTime } from 'luxon'
+
+import { parseJSON } from '~/utils/json-parse'
+
+import { TemplateTester } from '../../test/test-helpers'
+import { template } from './whatsapp.template'
+
+describe('whatsapp template', () => {
+ const tester = new TemplateTester(template)
+
+ beforeEach(async () => {
+ await tester.beforeEach()
+ const fixedTime = DateTime.fromISO('2025-01-01T00:00:00Z').toJSDate()
+ jest.spyOn(Date, 'now').mockReturnValue(fixedTime.getTime())
+ })
+
+ it('should send a text message', async () => {
+ const response = await tester.invoke(
+ {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ api_version: 'v21.0',
+ message_type: 'text',
+ message: 'Hello from PostHog',
+ },
+ {
+ event: { event: 'event-name' },
+ person: { properties: { phone: '+1234567893' } },
+ }
+ )
+
+ expect(response.error).toBeUndefined()
+ expect(response.finished).toEqual(false)
+
+ const queueParams = response.invocation.queueParameters as {
+ url: string
+ method: string
+ headers: Record<string, string>
+ body: string
+ }
+ expect(queueParams.url).toBe('https://graph.facebook.com/v21.0/987654321/messages')
+ expect(queueParams.method).toBe('POST')
+ expect(queueParams.headers).toEqual({
+ Authorization: 'Bearer token_12345',
+ 'Content-Type': 'application/json',
+ })
+ expect(parseJSON(queueParams.body)).toEqual({
+ messaging_product: 'whatsapp',
+ recipient_type: 'individual',
+ to: '+1234567893',
+ type: 'text',
+ text: { preview_url: false, body: 'Hello from PostHog' },
+ })
+
+ const fetchResponse = await tester.invokeFetchResponse(response.invocation, {
+ status: 200,
+ body: { messages: [{ id: 'wamid.HBgL' }] },
+ })
+
+ expect(fetchResponse.finished).toBe(true)
+ expect(fetchResponse.error).toBeUndefined()
+ })
+
+ it('should send a template message', async () => {
+ const response = await tester.invoke(
+ {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ api_version: 'v21.0',
+ to_number: '+1234567893',
+ message_type: 'template',
+ template_name: 'hello_world',
+ template_language: 'en_US',
+ },
+ {
+ event: { event: 'event-name' },
+ person: { properties: {} },
+ }
+ )
+
+ expect(response.error).toBeUndefined()
+ expect(response.finished).toEqual(false)
+
+ const queueParams = response.invocation.queueParameters as { url: string; body: string }
+ expect(queueParams.url).toBe('https://graph.facebook.com/v21.0/987654321/messages')
+ expect(parseJSON(queueParams.body)).toEqual({
+ messaging_product: 'whatsapp',
+ recipient_type: 'individual',
+ to: '+1234567893',
+ type: 'template',
+ template: {
+ name: 'hello_world',
+ language: { code: 'en_US' },
+ },
+ })
+ })
+
+ it('should default the api version when blank', async () => {
+ const response = await tester.invoke(
+ {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ api_version: '',
+ to_number: '+1234567893',
+ message_type: 'text',
+ message: 'Hello',
+ },
+ {
+ event: { event: 'event-name' },
+ person: { properties: {} },
+ }
+ )
+
+ expect(response.error).toBeUndefined()
+ expect((response.invocation.queueParameters as { url: string }).url).toEqual(
+ 'https://graph.facebook.com/v21.0/987654321/messages'
+ )
+ })
+
+ it.each([
+ {
+ name: 'recipient phone is empty',
+ inputs: {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ message_type: 'text',
+ message: 'Hello',
+ to_number: '',
+ },
+ expectedError: /Recipient phone number is required/,
+ },
+ {
+ name: 'template name is empty for template messages',
+ inputs: {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ to_number: '+1234567893',
+ message_type: 'template',
+ template_name: '',
+ },
+ expectedError: /Template name is required/,
+ },
+ {
+ name: 'message body is empty for text messages',
+ inputs: {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ to_number: '+1234567893',
+ message_type: 'text',
+ message: '',
+ },
+ expectedError: /Message body is required for text messages/,
+ },
+ ])('should error when $name', async ({ inputs, expectedError }) => {
+ const response = await tester.invoke(inputs, {
+ event: { event: 'event-name' },
+ person: { properties: {} },
+ })
+
+ expect(response.error).toMatch(expectedError)
+ })
+
+ it('should throw on non-2xx response', async () => {
+ const response = await tester.invoke(
+ {
+ access_token: 'token_12345',
+ phone_number_id: '987654321',
+ to_number: '+1234567893',
+ message_type: 'text',
+ message: 'Hello',
+ },
+ { event: { event: 'event-name' }, person: { properties: {} } }
+ )
+
+ const fetchResponse = await tester.invokeFetchResponse(response.invocation, {
+ status: 401,
+ body: { error: { message: 'invalid token' } },
+ })
+
+ expect(fetchResponse.error).toMatch(/Failed to send WhatsApp message/)
+ })
+})
diff --git a/nodejs/src/cdp/templates/_destinations/whatsapp/whatsapp.template.ts b/nodejs/src/cdp/templates/_destinations/whatsapp/whatsapp.template.ts
new file mode 100644
index 000000000000..ff2a374453b9
--- /dev/null
+++ b/nodejs/src/cdp/templates/_destinations/whatsapp/whatsapp.template.ts
@@ -0,0 +1,250 @@
+import { HogFunctionTemplate } from '~/cdp/types'
+
+export const template: HogFunctionTemplate = {
+ free: true,
+ status: 'beta',
+ type: 'destination',
+ id: 'template-whatsapp',
+ name: 'WhatsApp',
+ description: 'Send WhatsApp messages using the WhatsApp Cloud API (Meta Graph API)',
+ icon_url: '/static/services/whatsapp.svg',
+ category: ['Communication'],
+ code_language: 'hog',
+ code: `
+let toNumber := inputs.to_number
+let messageType := inputs.message_type
+let phoneNumberId := inputs.phone_number_id
+let accessToken := inputs.access_token
+let apiVersion := empty(inputs.api_version) ? 'v21.0' : inputs.api_version
+
+if (not toNumber) {
+ throw Error('Recipient phone number is required')
+}
+
+if (not phoneNumberId) {
+ throw Error('WhatsApp phone number ID is required')
+}
+
+if (not accessToken) {
+ throw Error('WhatsApp access token is required')
+}
+
+let body := {
+ 'messaging_product': 'whatsapp',
+ 'recipient_type': 'individual',
+ 'to': toNumber
+}
+
+if (messageType == 'template') {
+ if (empty(inputs.template_name)) {
+ throw Error('Template name is required for template messages')
+ }
+ let templatePayload := {
+ 'name': inputs.template_name,
+ 'language': {
+ 'code': empty(inputs.template_language) ? 'en_US' : inputs.template_language
+ }
+ }
+ body['type'] := 'template'
+ body['template'] := templatePayload
+} else {
+ if (empty(inputs.message)) {
+ throw Error('Message body is required for text messages')
+ }
+ body['type'] := 'text'
+ body['text'] := {
+ 'preview_url': false,
+ 'body': inputs.message
+ }
+}
+
+let url := f'https://graph.facebook.com/{apiVersion}/{phoneNumberId}/messages'
+
+let payload := {
+ 'method': 'POST',
+ 'headers': {
+ 'Authorization': f'Bearer {accessToken}',
+ 'Content-Type': 'application/json'
+ },
+ 'body': body
+}
+
+if (inputs.debug) {
+ print('Sending WhatsApp message', url, payload)
+}
+
+let res := fetch(url, payload)
+
+if (res.status < 200 or res.status >= 300) {
+ throw Error(f'Failed to send WhatsApp message: {res.status} {res.body}')
+}
+
+if (inputs.debug) {
+ print('WhatsApp message sent', res)
+}
+`,
+ inputs_schema: [
+ {
+ key: 'access_token',
+ type: 'string',
+ label: 'Access token',
+ description:
+ 'Your WhatsApp Cloud API access token from Meta. Generate it in the Meta for Developers app dashboard.',
+ secret: true,
+ required: true,
+ },
+ {
+ key: 'phone_number_id',
+ type: 'string',
+ label: 'Phone number ID',
+ description:
+ 'The phone number ID associated with your WhatsApp Business account (found in the WhatsApp Manager).',
+ secret: false,
+ required: true,
+ },
+ {
+ key: 'api_version',
+ type: 'string',
+ label: 'Graph API version',
+ description: 'The Meta Graph API version to call. Defaults to v21.0.',
+ default: 'v21.0',
+ secret: false,
+ required: false,
+ },
+ {
+ key: 'to_number',
+ type: 'string',
+ label: 'Recipient phone number',
+ description: 'Phone number to send the message to (in E.164 format, e.g., +1234567890).',
+ default: '{{ person.properties.phone }}',
+ templating: 'liquid',
+ secret: false,
+ required: true,
+ },
+ {
+ key: 'message_type',
+ type: 'choice',
+ label: 'Message type',
+ description:
+ 'Text messages can only be sent within the 24-hour customer service window. Use a pre-approved template for business-initiated conversations.',
+ choices: [
+ { label: 'Text', value: 'text' },
+ { label: 'Template', value: 'template' },
+ ],
+ default: 'text',
+ secret: false,
+ required: true,
+ },
+ {
+ key: 'message',
+ type: 'string',
+ label: 'Message',
+ description: 'Message body (max 4096 characters). Only used for text messages.',
+ default: 'PostHog event {{ event.event }} was triggered',
+ templating: 'liquid',
+ secret: false,
+ required: false,
+ },
+ {
+ key: 'template_name',
+ type: 'string',
+ label: 'Template name',
+ description: 'Name of the pre-approved WhatsApp message template. Only used for template messages.',
+ secret: false,
+ required: false,
+ },
+ {
+ key: 'template_language',
+ type: 'choice',
+ label: 'Template language',
+ description:
+ 'Language and locale code of the pre-approved template. Must match the language the template was approved in. Only used for template messages.',
+ default: 'en_US',
+ searchable: true,
+ choices: [
+ { value: 'af', label: 'Afrikaans (af)' },
+ { value: 'sq', label: 'Albanian (sq)' },
+ { value: 'ar', label: 'Arabic (ar)' },
+ { value: 'az', label: 'Azerbaijani (az)' },
+ { value: 'bn', label: 'Bengali (bn)' },
+ { value: 'bg', label: 'Bulgarian (bg)' },
+ { value: 'ca', label: 'Catalan (ca)' },
+ { value: 'zh_CN', label: 'Chinese — China (zh_CN)' },
+ { value: 'zh_HK', label: 'Chinese — Hong Kong (zh_HK)' },
+ { value: 'zh_TW', label: 'Chinese — Taiwan (zh_TW)' },
+ { value: 'hr', label: 'Croatian (hr)' },
+ { value: 'cs', label: 'Czech (cs)' },
+ { value: 'da', label: 'Danish (da)' },
+ { value: 'nl', label: 'Dutch (nl)' },
+ { value: 'en', label: 'English (en)' },
+ { value: 'en_GB', label: 'English — UK (en_GB)' },
+ { value: 'en_US', label: 'English — US (en_US)' },
+ { value: 'et', label: 'Estonian (et)' },
+ { value: 'fil', label: 'Filipino (fil)' },
+ { value: 'fi', label: 'Finnish (fi)' },
+ { value: 'fr', label: 'French (fr)' },
+ { value: 'ka', label: 'Georgian (ka)' },
+ { value: 'de', label: 'German (de)' },
+ { value: 'el', label: 'Greek (el)' },
+ { value: 'gu', label: 'Gujarati (gu)' },
+ { value: 'ha', label: 'Hausa (ha)' },
+ { value: 'he', label: 'Hebrew (he)' },
+ { value: 'hi', label: 'Hindi (hi)' },
+ { value: 'hu', label: 'Hungarian (hu)' },
+ { value: 'id', label: 'Indonesian (id)' },
+ { value: 'ga', label: 'Irish (ga)' },
+ { value: 'it', label: 'Italian (it)' },
+ { value: 'ja', label: 'Japanese (ja)' },
+ { value: 'kn', label: 'Kannada (kn)' },
+ { value: 'kk', label: 'Kazakh (kk)' },
+ { value: 'rw_RW', label: 'Kinyarwanda (rw_RW)' },
+ { value: 'ko', label: 'Korean (ko)' },
+ { value: 'ky_KG', label: 'Kyrgyz (ky_KG)' },
+ { value: 'lo', label: 'Lao (lo)' },
+ { value: 'lv', label: 'Latvian (lv)' },
+ { value: 'lt', label: 'Lithuanian (lt)' },
+ { value: 'mk', label: 'Macedonian (mk)' },
+ { value: 'ms', label: 'Malay (ms)' },
+ { value: 'ml', label: 'Malayalam (ml)' },
+ { value: 'mr', label: 'Marathi (mr)' },
+ { value: 'nb', label: 'Norwegian (nb)' },
+ { value: 'fa', label: 'Persian (fa)' },
+ { value: 'pl', label: 'Polish (pl)' },
+ { value: 'pt_BR', label: 'Portuguese — Brazil (pt_BR)' },
+ { value: 'pt_PT', label: 'Portuguese — Portugal (pt_PT)' },
+ { value: 'pa', label: 'Punjabi (pa)' },
+ { value: 'ro', label: 'Romanian (ro)' },
+ { value: 'ru', label: 'Russian (ru)' },
+ { value: 'sr', label: 'Serbian (sr)' },
+ { value: 'sk', label: 'Slovak (sk)' },
+ { value: 'sl', label: 'Slovenian (sl)' },
+ { value: 'es', label: 'Spanish (es)' },
+ { value: 'es_AR', label: 'Spanish — Argentina (es_AR)' },
+ { value: 'es_ES', label: 'Spanish — Spain (es_ES)' },
+ { value: 'es_MX', label: 'Spanish — Mexico (es_MX)' },
+ { value: 'sw', label: 'Swahili (sw)' },
+ { value: 'sv', label: 'Swedish (sv)' },
+ { value: 'ta', label: 'Tamil (ta)' },
+ { value: 'te', label: 'Telugu (te)' },
+ { value: 'th', label: 'Thai (th)' },
+ { value: 'tr', label: 'Turkish (tr)' },
+ { value: 'uk', label: 'Ukrainian (uk)' },
+ { value: 'ur', label: 'Urdu (ur)' },
+ { value: 'uz', label: 'Uzbek (uz)' },
+ { value: 'vi', label: 'Vietnamese (vi)' },
+ { value: 'zu', label: 'Zulu (zu)' },
+ ],
+ secret: false,
+ required: false,
+ },
+ {
+ key: 'debug',
+ type: 'boolean',
+ label: 'Log responses',
+ description: 'Logs the WhatsApp sending responses for debugging.',
+ default: false,
+ secret: false,
+ required: false,
+ },
+ ],
+}
diff --git a/nodejs/src/cdp/templates/index.ts b/nodejs/src/cdp/templates/index.ts
index 8c8a47e45ce0..11222ebaf499 100644
--- a/nodejs/src/cdp/templates/index.ts
+++ b/nodejs/src/cdp/templates/index.ts
@@ -28,6 +28,7 @@ import { template as tiktokAdsTemplate } from './_destinations/tiktok_ads/tiktok
import { template as twilioTemplate } from './_destinations/twilio/twilio.template'
import { template as unifyTemplate } from './_destinations/unify/unify.template'
import { template as webhookTemplate } from './_destinations/webhook/webhook.template'
+import { template as whatsappTemplate } from './_destinations/whatsapp/whatsapp.template'
import { template as pixelTemplate } from './_sources/pixel/pixel.template'
import { template as stripeWebhookTemplate } from './_sources/stripe/stripe_webhook.template'
import { template as vercelLogDrainTemplate } from './_sources/vercel/vercel_log_drain.template'
@@ -57,6 +58,7 @@ export const HOG_FUNCTION_TEMPLATES_DESTINATIONS: HogFunctionTemplate[] = [
linkedinAdsTemplate,
redditAdsTemplate,
twilioTemplate,
+ whatsappTemplate,
googleSheetsTemplate,
googleTagManagerTemplate,
emailTemplate,
diff --git a/nodejs/src/cdp/types.ts b/nodejs/src/cdp/types.ts
index 0cee3a448462..5700ce4704b5 100644
--- a/nodejs/src/cdp/types.ts
+++ b/nodejs/src/cdp/types.ts
@@ -359,6 +359,8 @@ export type HogFunctionInputSchemaType = {
key: string
label?: string
choices?: { value: string; label: string }[]
+ /** For `choice` inputs: render as a searchable select instead of a plain dropdown. */
+ searchable?: boolean
required?: boolean
default?: any
secret?: boolean
diff --git a/posthog/cdp/validation.py b/posthog/cdp/validation.py
index 0f7719d8b1e5..39e56750b6c8 100644
--- a/posthog/cdp/validation.py
+++ b/posthog/cdp/validation.py
@@ -222,6 +222,8 @@ class InputsSchemaItemSerializer(serializers.Serializer):
key = serializers.CharField()
label = serializers.CharField(required=False, allow_blank=True) # type: ignore
choices = serializers.ListField(child=serializers.DictField(), required=False)
+ # For `choice` inputs: render as a searchable select on the frontend.
+ searchable = serializers.BooleanField(required=False)
required = serializers.BooleanField(default=False) # type: ignore
default = serializers.JSONField(required=False)
secret = serializers.BooleanField(default=False)
diff --git a/products/cdp/frontend/generated/api.schemas.ts b/products/cdp/frontend/generated/api.schemas.ts
index af869e02790f..d6e1ab3ec641 100644
--- a/products/cdp/frontend/generated/api.schemas.ts
+++ b/products/cdp/frontend/generated/api.schemas.ts
@@ -285,6 +285,7 @@ export interface InputsSchemaItemApi {
key: string
label?: string
choices?: InputsSchemaItemApiChoicesItem[]
+ searchable?: boolean
required?: boolean
default?: unknown
secret?: boolean
diff --git a/products/cdp/frontend/generated/api.zod.ts b/products/cdp/frontend/generated/api.zod.ts
index c02bb8302cde..9f634d0af0db 100644
--- a/products/cdp/frontend/generated/api.zod.ts
+++ b/products/cdp/frontend/generated/api.zod.ts
@@ -82,6 +82,7 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod.boolean().default(hogFunctionsCreateBodyInputsSchemaItemRequiredDefault),
default: zod.unknown().optional(),
secret: zod.boolean().default(hogFunctionsCreateBodyInputsSchemaItemSecretDefault),
@@ -177,6 +178,7 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsCreateBodyMappingsItemInputsSchemaItemRequiredDefault),
@@ -322,6 +324,7 @@ export const HogFunctionsUpdateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod.boolean().default(hogFunctionsUpdateBodyInputsSchemaItemRequiredDefault),
default: zod.unknown().optional(),
secret: zod.boolean().default(hogFunctionsUpdateBodyInputsSchemaItemSecretDefault),
@@ -417,6 +420,7 @@ export const HogFunctionsUpdateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsUpdateBodyMappingsItemInputsSchemaItemRequiredDefault),
@@ -562,6 +566,7 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod.boolean().default(hogFunctionsPartialUpdateBodyInputsSchemaItemRequiredDefault),
default: zod.unknown().optional(),
secret: zod.boolean().default(hogFunctionsPartialUpdateBodyInputsSchemaItemSecretDefault),
@@ -657,6 +662,7 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsPartialUpdateBodyMappingsItemInputsSchemaItemRequiredDefault),
@@ -806,6 +812,7 @@ export const HogFunctionsEnableBackfillsCreateBody = /* @__PURE__ */ zod.object(
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod.boolean().default(hogFunctionsEnableBackfillsCreateBodyInputsSchemaItemRequiredDefault),
default: zod.unknown().optional(),
secret: zod.boolean().default(hogFunctionsEnableBackfillsCreateBodyInputsSchemaItemSecretDefault),
@@ -901,6 +908,7 @@ export const HogFunctionsEnableBackfillsCreateBody = /* @__PURE__ */ zod.object(
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(
@@ -1120,6 +1128,7 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsInvocationsCreateBodyConfigurationOneInputsSchemaItemRequiredDefault),
@@ -1224,6 +1233,7 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 11020534bd85..53b26bb3ea3b 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -18166,6 +18166,7 @@ export namespace Schemas {
key: string;
label?: string;
choices?: InputsSchemaItemChoicesItem[];
+ searchable?: boolean;
required?: boolean;
default?: unknown;
secret?: boolean;
diff --git a/services/mcp/src/generated/cdp_functions/api.ts b/services/mcp/src/generated/cdp_functions/api.ts
index 60d2e0270343..33ce609c8e22 100644
--- a/services/mcp/src/generated/cdp_functions/api.ts
+++ b/services/mcp/src/generated/cdp_functions/api.ts
@@ -107,6 +107,7 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod.boolean().default(hogFunctionsCreateBodyInputsSchemaItemRequiredDefault),
default: zod.unknown().optional(),
secret: zod.boolean().default(hogFunctionsCreateBodyInputsSchemaItemSecretDefault),
@@ -197,6 +198,7 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsCreateBodyMappingsItemInputsSchemaItemRequiredDefault),
@@ -350,6 +352,7 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod.boolean().default(hogFunctionsPartialUpdateBodyInputsSchemaItemRequiredDefault),
default: zod.unknown().optional(),
secret: zod.boolean().default(hogFunctionsPartialUpdateBodyInputsSchemaItemSecretDefault),
@@ -440,6 +443,7 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsPartialUpdateBodyMappingsItemInputsSchemaItemRequiredDefault),
@@ -667,6 +671,7 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(hogFunctionsInvocationsCreateBodyConfigurationOneInputsSchemaItemRequiredDefault),
@@ -771,6 +776,7 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({
key: zod.string(),
label: zod.string().optional(),
choices: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
+ searchable: zod.boolean().optional(),
required: zod
.boolean()
.default(
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-create.json
index fa1f773d070e..82d7f0d21c07 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-create.json
@@ -155,6 +155,9 @@
"default": false,
"type": "boolean"
},
+ "searchable": {
+ "type": "boolean"
+ },
"secret": {
"default": false,
"type": "boolean"
@@ -310,6 +313,9 @@
"default": false,
"type": "boolean"
},
+ "searchable": {
+ "type": "boolean"
+ },
"secret": {
"default": false,
"type": "boolean"
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-invocations-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-invocations-create.json
index 51f234808b42..78d31ff80392 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-invocations-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-invocations-create.json
@@ -295,6 +295,9 @@
"requires_field": {
"type": "string"
},
+ "searchable": {
+ "type": "boolean"
+ },
"secret": {
"default": false,
"type": "boolean"
@@ -470,6 +473,9 @@
"requires_field": {
"type": "string"
},
+ "searchable": {
+ "type": "boolean"
+ },
"secret": {
"default": false,
"type": "boolean"
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-partial-update.json
index 5a72fb373562..cb19bf59edc3 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-partial-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-partial-update.json
@@ -159,6 +159,9 @@
"default": false,
"type": "boolean"
},
+ "searchable": {
+ "type": "boolean"
+ },
"secret": {
"default": false,
"type": "boolean"
@@ -314,6 +317,9 @@
"default": false,
"type": "boolean"
},
+ "searchable": {
+ "type": "boolean"
+ },
"secret": {
"default": false,
"type": "boolean"