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(workflows): add show survey step (#125012)

Daniel Marchukc09fd8e78399
diff --git a/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts b/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts
index 1787faa8116d..a1f24a2c18b5 100644
--- a/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts
+++ b/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts
@@ -50,6 +50,9 @@ export const CUSTOM_INPUT_RENDERERS: Record<
signals_scout: lazyWithRetry(
() => import('products/signals/frontend/components/ScoutPicker/CyclotronJobInputScoutPicker')
),
+ posthog_survey: lazyWithRetry(
+ () => import('products/surveys/frontend/components/WorkflowSurveyPicker/CyclotronJobInputSurveyPicker')
+ ),
task_skills: lazyWithRetry(
() => import('products/tasks/frontend/components/TaskSkillsPicker/CyclotronJobInputTaskSkills')
),
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 9292c9282623..4ad1f7b4f320 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -631,6 +631,7 @@ export const FEATURE_FLAGS = {
WORKFLOWS_PUSH_NOTIFICATIONS: 'workflows-push-notifications', // owner: #team-workflows
WORKFLOWS_SENDING_TIER_REQUESTS: 'workflows-sending-tier-requests', // owner: @luke-belton #team-workflows, lets customers request a higher email sending tier
WORKFLOWS_SUPABASE_AUTH_EMAILS: 'workflows-supabase-auth-emails', // owner: @luke-belton #team-workflows, send Supabase auth emails through transactional templates
+ WORKFLOWS_SURVEY_STEP: 'workflows-survey-step', // owner: @dmarchuk #team-workflows
WORKFLOWS_TILE_CANVAS: 'workflows-tile-canvas', // owner: #team-workflows
WORKFLOWS_TRANSACTIONAL_EMAIL_API: 'workflows-transactional-email-api', // owner: @mayteio #team-workflows
XAA_AUTHENTICATION: 'xaa-authentication', // owner: @reecejones #team-platform-features
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index f764a25a0cc7..5c2b81e33afe 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -7325,6 +7325,7 @@ export type CyclotronJobInputSchemaType = {
| 'task_repository'
| 'task_mcp_installations'
| 'signals_scout'
+ | 'posthog_survey'
| 'replay_vision_scan'
| 'task_skills'
key: string
diff --git a/products/cdp/backend/validation.py b/products/cdp/backend/validation.py
index c386c1a5a36c..1dec2c491433 100644
--- a/products/cdp/backend/validation.py
+++ b/products/cdp/backend/validation.py
@@ -666,6 +666,7 @@ class InputsSchemaItemSerializer(serializers.Serializer):
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan",
]
@@ -868,6 +869,9 @@ class InputsItemSerializer(serializers.Serializer):
elif item_type == "signals_scout":
if not isinstance(value, str):
raise serializers.ValidationError({"input": "Value must be a scout skill name."})
+ elif item_type == "posthog_survey":
+ if not isinstance(value, str):
+ raise serializers.ValidationError({"input": "Value must be a survey ID."})
elif item_type == "replay_vision_scan":
if not isinstance(value, dict) or not isinstance(value.get("type"), str):
raise serializers.ValidationError({"input": "Choose what Replay Vision should do."})
diff --git a/products/cdp/frontend/generated/api.schemas.ts b/products/cdp/frontend/generated/api.schemas.ts
index 58935825f96e..d747af8fa145 100644
--- a/products/cdp/frontend/generated/api.schemas.ts
+++ b/products/cdp/frontend/generated/api.schemas.ts
@@ -288,6 +288,7 @@ export const HogFunctionTypeEnumApi = {
* * `task_repository` - task_repository
* * `task_mcp_installations` - task_mcp_installations
* * `signals_scout` - signals_scout
+ * * `posthog_survey` - posthog_survey
* * `task_skills` - task_skills
* * `replay_vision_scan` - replay_vision_scan
*/
@@ -315,6 +316,7 @@ export const InputsSchemaItemTypeEnumApi = {
TaskRepository: 'task_repository',
TaskMcpInstallations: 'task_mcp_installations',
SignalsScout: 'signals_scout',
+ PosthogSurvey: 'posthog_survey',
TaskSkills: 'task_skills',
ReplayVisionScan: 'replay_vision_scan',
} as const
diff --git a/products/cdp/frontend/generated/api.zod.ts b/products/cdp/frontend/generated/api.zod.ts
index e86b2ed8d1da..a17a45229948 100644
--- a/products/cdp/frontend/generated/api.zod.ts
+++ b/products/cdp/frontend/generated/api.zod.ts
@@ -85,11 +85,12 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -192,11 +193,12 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -365,11 +367,12 @@ export const HogFunctionsUpdateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -472,11 +475,12 @@ export const HogFunctionsUpdateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -645,11 +649,12 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -752,11 +757,12 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -929,11 +935,12 @@ export const HogFunctionsEnableBackfillsCreateBody = /* @__PURE__ */ zod.object(
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -1036,11 +1043,12 @@ export const HogFunctionsEnableBackfillsCreateBody = /* @__PURE__ */ zod.object(
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -1285,11 +1293,12 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -1407,11 +1416,12 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
diff --git a/products/surveys/backend/api/survey.py b/products/surveys/backend/api/survey.py
index abd1707e846f..625f364ae193 100644
--- a/products/surveys/backend/api/survey.py
+++ b/products/surveys/backend/api/survey.py
@@ -2094,7 +2094,8 @@ class SurveySerializerCreateUpdateOnly(serializers.ModelSerializer):
instance.targeting_flag.save()
self._add_user_survey_interacted_filters(instance)
- self._associate_actions(instance, validated_data.get("conditions"))
+ if "conditions" in validated_data:
+ self._associate_actions(instance, validated_data["conditions"])
self._add_internal_response_sampling_filters(instance)
log_activity(
diff --git a/products/surveys/backend/api/test/test_survey.py b/products/surveys/backend/api/test/test_survey.py
index 4be196ca7068..bd808632a27c 100644
--- a/products/surveys/backend/api/test/test_survey.py
+++ b/products/surveys/backend/api/test/test_survey.py
@@ -5093,6 +5093,30 @@ class TestSurveyWithActions(APIBaseTest):
assert survey is not None
assert len(survey.actions.all()) == 0
+ def test_update_without_conditions_keeps_associated_actions(self):
+ action = Action.objects.create(
+ team=self.team,
+ name="user subscribed",
+ steps_json=[{"event": "$pageview", "url": "docs", "url_matching": "contains"}],
+ )
+ survey_with_actions = Survey.objects.create(
+ team=self.team,
+ created_by=self.user,
+ name="survey with actions",
+ type="popover",
+ questions=[{"type": "open", "question": "Why's a hedgehog?"}],
+ conditions={"actions": {"values": [{"id": action.id}]}},
+ )
+ survey_with_actions.actions.set([action])
+
+ response = self.client.patch(
+ f"/api/projects/{self.team.id}/surveys/{survey_with_actions.id}/",
+ data={"name": "renamed survey"},
+ format="json",
+ )
+ assert response.status_code == status.HTTP_200_OK, response.json()
+ assert list(Survey.objects.get(id=survey_with_actions.id).actions.all()) == [action]
+
class TestGetSurveyConditionsActionSanitization(SimpleTestCase):
def test_public_action_serializer_strips_non_public_fields_from_stale_blob(self) -> None:
diff --git a/products/surveys/frontend/components/WorkflowSurveyPicker/CyclotronJobInputSurveyPicker.tsx b/products/surveys/frontend/components/WorkflowSurveyPicker/CyclotronJobInputSurveyPicker.tsx
new file mode 100644
index 000000000000..34feb4287879
--- /dev/null
+++ b/products/surveys/frontend/components/WorkflowSurveyPicker/CyclotronJobInputSurveyPicker.tsx
@@ -0,0 +1,144 @@
+import { useActions, useValues } from 'kea'
+
+import { LemonBanner, LemonButton, LemonInputSelect, LemonInputSelectOption } from '@posthog/lemon-ui'
+
+import type { CustomInputRendererProps } from 'lib/components/CyclotronJob/customInputRenderers'
+import { Link } from 'lib/lemon-ui/Link'
+import { truncate } from 'lib/utils/strings'
+import { teamLogic } from 'scenes/teamLogic'
+import { urls } from 'scenes/urls'
+
+import type { SurveyApi } from 'products/surveys/frontend/generated/api.schemas'
+
+import { workflowSurveyPickerLogic } from './workflowSurveyPickerLogic'
+import { isLimitedToWorkflowRecipients } from './workflowSurveyTargeting'
+
+const IN_APP_SURVEY_TYPES = new Set(['popover', 'widget'])
+
+function surveyStatusLabel(survey: SurveyApi): string {
+ if (!survey.start_date) {
+ return 'draft'
+ }
+ return survey.end_date ? 'complete' : 'running'
+}
+
+function SurveyReadiness({ survey }: { survey: SurveyApi }): JSX.Element {
+ const logic = workflowSurveyPickerLogic({ surveyId: survey.id })
+ const { limitingSurveyId } = useValues(logic)
+ const { currentTeam } = useValues(teamLogic)
+ const { limitToWorkflowRecipients } = useActions(logic)
+
+ if (!IN_APP_SURVEY_TYPES.has(survey.type)) {
+ return (
+ <LemonBanner type="warning">
+ This survey isn't shown inside your app. Pick a popover or widget survey.
+ </LemonBanner>
+ )
+ }
+
+ return (
+ <div className="flex flex-col gap-2">
+ {!currentTeam?.surveys_opt_in && (
+ <LemonBanner type="warning">
+ Surveys are turned off for this project, so nobody will see this one.{' '}
+ <Link to={urls.settings('environment-surveys', 'surveys-interface')}>Turn them on</Link>
+ </LemonBanner>
+ )}
+ {!survey.start_date ? (
+ <LemonBanner type="warning">
+ This survey is a draft. <Link to={urls.survey(survey.id)}>Launch it</Link> so people can see it.
+ </LemonBanner>
+ ) : survey.end_date ? (
+ <LemonBanner type="warning">
+ This survey has ended. <Link to={urls.survey(survey.id)}>Resume it</Link> so people can see it.
+ </LemonBanner>
+ ) : null}
+ {isLimitedToWorkflowRecipients(survey) ? (
+ <LemonBanner type="success">Only people this workflow reaches will see this survey.</LemonBanner>
+ ) : (
+ <LemonBanner
+ type="info"
+ action={{
+ children: 'Show only to workflow recipients',
+ onClick: () => limitToWorkflowRecipients(survey),
+ loading: limitingSurveyId === survey.id,
+ disabledReason: limitingSurveyId ? 'Updating the survey...' : undefined,
+ 'data-attr': 'workflow-survey-limit-targeting',
+ }}
+ >
+ Anyone who matches this survey's display conditions can see it, not only people this workflow
+ reaches.
+ </LemonBanner>
+ )}
+ <div className="text-xs text-secondary">
+ The survey appears the next time the person loads your web or mobile app, as long as they haven't
+ already answered or dismissed it.
+ </div>
+ </div>
+ )
+}
+
+export default function CyclotronJobInputSurveyPicker({ value, onChange }: CustomInputRendererProps): JSX.Element {
+ const selectedId = typeof value === 'string' ? value : ''
+ const logic = workflowSurveyPickerLogic({ surveyId: selectedId || null })
+ const { surveys, surveysLoading, selectedSurvey, selectedSurveyLoading } = useValues(logic)
+ const { loadSurveys, loadSelectedSurvey, setSearch } = useActions(logic)
+
+ const currentSurvey = selectedSurvey?.id === selectedId ? selectedSurvey : null
+ const options: LemonInputSelectOption[] = surveys
+ .filter((survey) => IN_APP_SURVEY_TYPES.has(survey.type) && survey.id !== selectedId)
+ .map((survey) => ({
+ key: survey.id,
+ label: `${truncate(survey.name, 60)} (${surveyStatusLabel(survey)})`,
+ }))
+ // A stored ID that no longer resolves (deleted) still renders as itself, not blank.
+ if (selectedId) {
+ options.unshift({
+ key: selectedId,
+ label: currentSurvey
+ ? `${truncate(currentSurvey.name, 60)} (${surveyStatusLabel(currentSurvey)})`
+ : selectedSurveyLoading
+ ? 'Loading survey...'
+ : `Unknown survey (${selectedId})`,
+ })
+ }
+
+ return (
+ <div className="flex flex-col gap-2">
+ <div className="flex gap-2 items-center">
+ <div className="flex-1 min-w-0">
+ <LemonInputSelect
+ mode="single"
+ data-attr="select-workflow-survey"
+ placeholder="Search surveys..."
+ value={selectedId ? [selectedId] : []}
+ onChange={(val) => onChange(val[0] ?? null)}
+ onInputChange={setSearch}
+ disableFiltering
+ options={options}
+ loading={surveysLoading}
+ />
+ </div>
+ <LemonButton size="small" type="secondary" to={urls.surveys()} targetBlank>
+ Create survey
+ </LemonButton>
+ <LemonButton
+ size="small"
+ type="tertiary"
+ onClick={() => {
+ loadSurveys()
+ loadSelectedSurvey(selectedId || null)
+ }}
+ disabledReason={surveysLoading || selectedSurveyLoading ? 'Loading...' : undefined}
+ >
+ Refresh
+ </LemonButton>
+ </div>
+ {currentSurvey && !currentSurvey.archived ? (
+ <SurveyReadiness survey={currentSurvey} />
+ ) : selectedId && !selectedSurveyLoading ? (
+ <LemonBanner type="error">This survey was archived or deleted. Pick another one.</LemonBanner>
+ ) : null}
+ </div>
+ )
+}
diff --git a/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyPickerLogic.ts b/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyPickerLogic.ts
new file mode 100644
index 000000000000..458bc90ce84c
--- /dev/null
+++ b/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyPickerLogic.ts
@@ -0,0 +1,169 @@
+import { MakeLogicType, actions, afterMount, connect, kea, listeners, path, props, propsChanged, reducers } from 'kea'
+import { loaders } from 'kea-loaders'
+
+import { lemonToast } from '@posthog/lemon-ui'
+
+import { ApiError } from 'lib/api'
+import { teamLogic } from 'scenes/teamLogic'
+
+import { surveysList, surveysPartialUpdate, surveysRetrieve } from 'products/surveys/frontend/generated/api'
+import type { SurveyApi } from 'products/surveys/frontend/generated/api.schemas'
+
+import { targetingFiltersLimitedToWorkflowRecipients } from './workflowSurveyTargeting'
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface workflowSurveyPickerLogicValues {
+ currentProjectId: number | string // teamLogic
+ limitingSurveyId: string | null
+ search: string
+ selectedSurvey: SurveyApi | null
+ selectedSurveyLoading: boolean
+ surveys: SurveyApi[]
+ surveysLoading: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface workflowSurveyPickerLogicActions {
+ limitToWorkflowRecipients: (survey: SurveyApi) => {
+ survey: SurveyApi
+ }
+ loadSelectedSurvey: (surveyId: string | null) => string | null
+ loadSelectedSurveyFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadSelectedSurveySuccess: (
+ selectedSurvey: SurveyApi | null,
+ payload?: string | null
+ ) => {
+ selectedSurvey: SurveyApi | null
+ payload?: string | null
+ }
+ loadSurveys: (_: void) => void
+ loadSurveysFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadSurveysSuccess: (
+ surveys: SurveyApi[],
+ payload?: void
+ ) => {
+ surveys: SurveyApi[]
+ payload?: void
+ }
+ setLimitingSurveyId: (surveyId: string | null) => {
+ surveyId: string | null
+ }
+ setSearch: (search: string) => {
+ search: string
+ }
+}
+
+export type workflowSurveyPickerLogicType = MakeLogicType<
+ workflowSurveyPickerLogicValues,
+ workflowSurveyPickerLogicActions,
+ WorkflowSurveyPickerLogicProps
+>
+
+export interface WorkflowSurveyPickerLogicProps {
+ surveyId: string | null
+}
+
+const SURVEY_SEARCH_PAGE_SIZE = 100
+
+export const workflowSurveyPickerLogic = kea<workflowSurveyPickerLogicType>([
+ props({} as WorkflowSurveyPickerLogicProps),
+ path(['products', 'surveys', 'frontend', 'components', 'WorkflowSurveyPicker', 'workflowSurveyPickerLogic']),
+ connect(() => ({
+ values: [teamLogic, ['currentProjectId']],
+ })),
+ actions({
+ setSearch: (search: string) => ({ search }),
+ limitToWorkflowRecipients: (survey: SurveyApi) => ({ survey }),
+ setLimitingSurveyId: (surveyId: string | null) => ({ surveyId }),
+ }),
+ reducers({
+ search: ['', { setSearch: (_, { search }) => search }],
+ limitingSurveyId: [null as string | null, { setLimitingSurveyId: (_, { surveyId }) => surveyId }],
+ }),
+ loaders(({ values }) => ({
+ surveys: [
+ [] as SurveyApi[],
+ {
+ loadSurveys: async (_: void, breakpoint): Promise<SurveyApi[]> => {
+ if (!values.currentProjectId) {
+ return []
+ }
+ if (values.search) {
+ await breakpoint(300)
+ }
+ const response = await surveysList(String(values.currentProjectId), {
+ archived: false,
+ limit: SURVEY_SEARCH_PAGE_SIZE,
+ search: values.search || undefined,
+ })
+ breakpoint()
+ return response.results
+ },
+ },
+ ],
+ selectedSurvey: [
+ null as SurveyApi | null,
+ {
+ loadSelectedSurvey: async (surveyId: string | null, breakpoint): Promise<SurveyApi | null> => {
+ if (!surveyId || !values.currentProjectId) {
+ return null
+ }
+ try {
+ const survey = await surveysRetrieve(String(values.currentProjectId), surveyId)
+ breakpoint()
+ return survey
+ } catch (error) {
+ breakpoint()
+ if (error instanceof ApiError && error.status === 404) {
+ return null
+ }
+ throw error
+ }
+ },
+ },
+ ],
+ })),
+ listeners(({ actions, values, props }) => ({
+ setSearch: () => {
+ actions.loadSurveys()
+ },
+ limitToWorkflowRecipients: async ({ survey }) => {
+ if (!values.currentProjectId) {
+ return
+ }
+ actions.setLimitingSurveyId(survey.id)
+ try {
+ await surveysPartialUpdate(String(values.currentProjectId), survey.id, {
+ targeting_flag_filters: targetingFiltersLimitedToWorkflowRecipients(survey),
+ })
+ lemonToast.success('Survey now only shows to people a workflow sends it to')
+ actions.loadSelectedSurvey(props.surveyId)
+ } catch (error: any) {
+ lemonToast.error(`Couldn't update the survey targeting: ${error?.detail ?? error?.message ?? error}`)
+ } finally {
+ actions.setLimitingSurveyId(null)
+ }
+ },
+ })),
+ propsChanged(({ actions, props }, oldProps) => {
+ if (props.surveyId !== oldProps.surveyId) {
+ actions.loadSelectedSurvey(props.surveyId)
+ }
+ }),
+ afterMount(({ actions, props }) => {
+ actions.loadSurveys()
+ actions.loadSelectedSurvey(props.surveyId)
+ }),
+])
diff --git a/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyTargeting.test.ts b/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyTargeting.test.ts
new file mode 100644
index 000000000000..506b96de6a99
--- /dev/null
+++ b/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyTargeting.test.ts
@@ -0,0 +1,36 @@
+import type { SurveyApi } from 'products/surveys/frontend/generated/api.schemas'
+
+import { isLimitedToWorkflowRecipients, targetingFiltersLimitedToWorkflowRecipients } from './workflowSurveyTargeting'
+
+const CONDITION = { key: '$survey_triggered/s1', type: 'person', operator: 'is_set', value: 'is_set' }
+const EMAIL = { key: 'email', type: 'person', operator: 'icontains', value: '@example.com' }
+
+const survey = (groups?: unknown[]): SurveyApi =>
+ ({ id: 's1', targeting_flag: groups ? { filters: { groups } } : null }) as unknown as SurveyApi
+
+describe('workflow survey targeting', () => {
+ it.each([
+ ['no targeting flag', undefined, [{ properties: [CONDITION], rollout_percentage: 100, variant: null }]],
+ [
+ 'existing conditions are kept',
+ [{ properties: [EMAIL], rollout_percentage: 50 }],
+ [{ properties: [EMAIL, CONDITION], rollout_percentage: 50 }],
+ ],
+ ['already limited', [{ properties: [CONDITION] }], [{ properties: [CONDITION] }]],
+ [
+ 'an excluding workflow condition is replaced',
+ [{ properties: [EMAIL, { ...CONDITION, operator: 'is_not_set', value: 'is_not_set' }] }],
+ [{ properties: [EMAIL, CONDITION] }],
+ ],
+ ])('limits %s to workflow recipients', (_, groups, expected) => {
+ const filters = targetingFiltersLimitedToWorkflowRecipients(survey(groups))
+ expect(filters.groups).toEqual(expected)
+ expect(isLimitedToWorkflowRecipients(survey(filters.groups))).toBe(true)
+ })
+
+ it('is not limited while any group lacks the condition', () => {
+ expect(isLimitedToWorkflowRecipients(survey([{ properties: [CONDITION] }, { properties: [EMAIL] }]))).toBe(
+ false
+ )
+ })
+})
diff --git a/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyTargeting.ts b/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyTargeting.ts
new file mode 100644
index 000000000000..1dabcd6f30d1
--- /dev/null
+++ b/products/surveys/frontend/components/WorkflowSurveyPicker/workflowSurveyTargeting.ts
@@ -0,0 +1,50 @@
+import type {
+ FeatureFlagConditionGroupSchemaApi,
+ FeatureFlagFilterPropertyExistsSchemaApi,
+ FeatureFlagFiltersSchemaApi,
+ SurveyApi,
+} from 'products/surveys/frontend/generated/api.schemas'
+
+export function workflowTriggeredPropertyKey(surveyId: string): string {
+ return `$survey_triggered/${surveyId}`
+}
+
+function targetingGroups(survey: SurveyApi): FeatureFlagConditionGroupSchemaApi[] {
+ const groups = survey.targeting_flag?.filters?.groups
+ return Array.isArray(groups) ? (groups as FeatureFlagConditionGroupSchemaApi[]) : []
+}
+
+function isWorkflowCondition(property: { key?: string; type?: string; operator?: string }, key: string): boolean {
+ return property.key === key && property.type === 'person' && property.operator === 'is_set'
+}
+
+/** True when every targeting group requires the person to have been reached by a workflow. */
+export function isLimitedToWorkflowRecipients(survey: SurveyApi): boolean {
+ const key = workflowTriggeredPropertyKey(survey.id)
+ const groups = targetingGroups(survey)
+ return (
+ groups.length > 0 && groups.every((group) => (group.properties ?? []).some((p) => isWorkflowCondition(p, key)))
+ )
+}
+
+/** Adds the workflow condition to each existing targeting group, keeping the survey's other conditions. */
+export function targetingFiltersLimitedToWorkflowRecipients(survey: SurveyApi): FeatureFlagFiltersSchemaApi {
+ const key = workflowTriggeredPropertyKey(survey.id)
+ const condition: FeatureFlagFilterPropertyExistsSchemaApi = {
+ key,
+ type: 'person',
+ operator: 'is_set',
+ value: 'is_set',
+ }
+ const groups = targetingGroups(survey)
+ if (groups.length === 0) {
+ return { groups: [{ properties: [condition], rollout_percentage: 100, variant: null }] }
+ }
+ return {
+ groups: groups.map((group) =>
+ (group.properties ?? []).some((p) => isWorkflowCondition(p, key))
+ ? group
+ : { ...group, properties: [...(group.properties ?? []).filter((p) => p.key !== key), condition] }
+ ),
+ }
+}
diff --git a/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx b/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx
index 87e98e7850c5..23b2dde3dd91 100644
--- a/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx
+++ b/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx
@@ -609,6 +609,7 @@ export interface hogFlowEditorLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -1189,6 +1190,7 @@ export interface hogFlowEditorLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -1496,6 +1498,7 @@ export interface hogFlowEditorLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -2076,6 +2079,7 @@ export interface hogFlowEditorLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
diff --git a/products/workflows/frontend/Workflows/hogflows/registry/actions/index.ts b/products/workflows/frontend/Workflows/hogflows/registry/actions/index.ts
index 38da7fbfee1e..fde3efb0b133 100644
--- a/products/workflows/frontend/Workflows/hogflows/registry/actions/index.ts
+++ b/products/workflows/frontend/Workflows/hogflows/registry/actions/index.ts
@@ -1,2 +1,3 @@
import './conversations'
import './customer_analytics'
+import './surveys'
diff --git a/products/workflows/frontend/Workflows/hogflows/registry/actions/surveys.ts b/products/workflows/frontend/Workflows/hogflows/registry/actions/surveys.ts
new file mode 100644
index 000000000000..011c69fc2faf
--- /dev/null
+++ b/products/workflows/frontend/Workflows/hogflows/registry/actions/surveys.ts
@@ -0,0 +1,16 @@
+import { FEATURE_FLAGS } from 'lib/constants'
+
+import { registerActionNodeCategory } from 'products/workflows/frontend/Workflows/hogflows/registry/actions/actionNodeRegistry'
+
+registerActionNodeCategory({
+ label: 'In-app',
+ featureFlag: FEATURE_FLAGS.WORKFLOWS_SURVEY_STEP,
+ nodes: [
+ {
+ type: 'function',
+ name: 'Show survey',
+ description: 'Show an in-app survey the next time this person opens your app.',
+ config: { template_id: 'template-posthog-show-survey', inputs: {} },
+ },
+ ],
+})
diff --git a/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts b/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts
index b2729edd9d7a..514534f809e7 100644
--- a/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts
+++ b/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts
@@ -338,6 +338,7 @@ export interface stepDelayLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -670,6 +671,7 @@ export interface stepDelayLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
diff --git a/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts b/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts
index 18eaef825198..445f5ebf4cba 100644
--- a/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts
+++ b/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts
@@ -264,6 +264,7 @@ export interface stepWaitUntilTimeWindowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -597,6 +598,7 @@ export interface stepWaitUntilTimeWindowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
diff --git a/products/workflows/frontend/Workflows/hogflows/steps/types.ts b/products/workflows/frontend/Workflows/hogflows/steps/types.ts
index def455e817bd..44f17e8494a6 100644
--- a/products/workflows/frontend/Workflows/hogflows/steps/types.ts
+++ b/products/workflows/frontend/Workflows/hogflows/steps/types.ts
@@ -105,6 +105,7 @@ export const CyclotronJobInputSchemaTypeSchema = z.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'replay_vision_scan',
'task_skills',
]),
diff --git a/products/workflows/frontend/Workflows/workflowLogic.ts b/products/workflows/frontend/Workflows/workflowLogic.ts
index 01d0b2903740..d6b28f250e4f 100644
--- a/products/workflows/frontend/Workflows/workflowLogic.ts
+++ b/products/workflows/frontend/Workflows/workflowLogic.ts
@@ -651,6 +651,7 @@ export interface workflowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -1328,6 +1329,7 @@ export interface workflowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -1538,6 +1540,7 @@ export interface workflowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -2215,6 +2218,7 @@ export interface workflowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -2410,6 +2414,7 @@ export interface workflowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
@@ -2821,6 +2826,7 @@ export interface workflowLogicActions {
| 'number'
| 'posthog_assignee'
| 'posthog_business_hours'
+ | 'posthog_survey'
| 'posthog_ticket_tags'
| 'replay_vision_scan'
| 'signals_scout'
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index cfba73f08d9e..32b8c57f77b4 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -52562,6 +52562,7 @@ export namespace Schemas {
* * `task_repository` - task_repository
* * `task_mcp_installations` - task_mcp_installations
* * `signals_scout` - signals_scout
+ * * `posthog_survey` - posthog_survey
* * `task_skills` - task_skills
* * `replay_vision_scan` - replay_vision_scan
*/
@@ -52590,6 +52591,7 @@ export namespace Schemas {
TaskRepository: 'task_repository',
TaskMcpInstallations: 'task_mcp_installations',
SignalsScout: 'signals_scout',
+ PosthogSurvey: 'posthog_survey',
TaskSkills: 'task_skills',
ReplayVisionScan: 'replay_vision_scan',
} as const;
diff --git a/services/mcp/src/generated/cdp_functions/api.ts b/services/mcp/src/generated/cdp_functions/api.ts
index d9c66abbc809..a54de2575ecc 100644
--- a/services/mcp/src/generated/cdp_functions/api.ts
+++ b/services/mcp/src/generated/cdp_functions/api.ts
@@ -110,11 +110,12 @@ export const HogFunctionsCreateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -205,11 +206,12 @@ export const HogFunctionsCreateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -380,11 +382,12 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -475,11 +478,12 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -741,11 +745,12 @@ export const HogFunctionsInvocationsCreateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -863,11 +868,12 @@ export const HogFunctionsInvocationsCreateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
diff --git a/services/mcp/src/generated/error_tracking_alerts/api.ts b/services/mcp/src/generated/error_tracking_alerts/api.ts
index 3f016e900def..9b7e526653f6 100644
--- a/services/mcp/src/generated/error_tracking_alerts/api.ts
+++ b/services/mcp/src/generated/error_tracking_alerts/api.ts
@@ -110,11 +110,12 @@ export const HogFunctionsCreateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -205,11 +206,12 @@ export const HogFunctionsCreateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -371,11 +373,12 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
@@ -466,11 +469,12 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({
'task_repository',
'task_mcp_installations',
'signals_scout',
+ 'posthog_survey',
'task_skills',
'replay_vision_scan',
])
.describe(
- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `posthog_survey` - posthog_survey\n\* `task_skills` - task_skills\n\* `replay_vision_scan` - replay_vision_scan'
),
key: zod.string(),
label: zod.string().optional(),
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json
index 390c5e0dad21..647cf30092d3 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json
@@ -181,7 +181,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -204,6 +204,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
@@ -361,7 +362,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -384,6 +385,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json
index 9e5517f24ced..0e45cdee209c 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json
@@ -347,7 +347,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -370,6 +370,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
@@ -547,7 +548,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -570,6 +571,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json
index 57a4d4ac51f3..e9c55bf2837b 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json
@@ -191,7 +191,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -214,6 +214,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
@@ -371,7 +372,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -394,6 +395,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json
index 90bcf05f4a11..f9949d0f6fd9 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json
@@ -181,7 +181,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -204,6 +204,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
@@ -361,7 +362,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -384,6 +385,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json
index fe32f1365795..e3eb2a79b4bf 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json
@@ -191,7 +191,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -214,6 +214,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],
@@ -371,7 +372,7 @@
]
},
"type": {
- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `posthog_survey` - posthog_survey\n* `task_skills` - task_skills\n* `replay_vision_scan` - replay_vision_scan",
"enum": [
"string",
"number",
@@ -394,6 +395,7 @@
"task_repository",
"task_mcp_installations",
"signals_scout",
+ "posthog_survey",
"task_skills",
"replay_vision_scan"
],