: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(workflows): remove the workflows-data-suggestions flag (#120053)
Meikel Ratz33f4158eec9e
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex c23b073e30f1..413c64a94e7e 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -600,7 +600,6 @@ export const FEATURE_FLAGS = {WORKFLOWS_AI_FIRST_NEW: 'workflows-ai-first-new', // owner: @mayteio #team-workflowsWORKFLOWS_BROADCAST_RECIPIENT_LISTS: 'workflows-broadcast-recipient-lists', // owner: @mayteio #team-workflowsWORKFLOWS_COHORT_CONDITIONS: 'workflows-cohort-conditions', // owner: @meikelmosby #team-workflows- WORKFLOWS_DATA_SUGGESTIONS: 'workflows-data-suggestions', // owner: #team-workflows, suggests workflows built from the project's events on the empty stateWORKFLOWS_EMAIL_MEDIA_LIBRARY: 'workflows-email-media-library', // owner: @mayteio #team-workflows, backs the email editor's Uploads tab with the media libraryWORKFLOWS_EMAIL_SENDER_ROTATION: 'workflows-email-sender-rotation', // owner: @arthurdedeus #team-workflowsWORKFLOWS_INTERNAL_EVENT_FILTERS: 'workflows-internal-event-filters', // owner: @haven #team-workflowsdiff --git a/products/today/backend/logic/highlight_sources/workflow_ideas.py b/products/today/backend/logic/highlight_sources/workflow_ideas.pyindex e0176f85b383..d18c35604110 100644--- a/products/today/backend/logic/highlight_sources/workflow_ideas.py+++ b/products/today/backend/logic/highlight_sources/workflow_ideas.py@@ -10,7 +10,7 @@ IDEAS_DETAIL = "Pick one to build it as a draft workflow"def find(context: Context) -> Found:- count = count_waiting_data_suggestions(team=context.team, user=context.user)+ count = count_waiting_data_suggestions(team=context.team)if not count:return Found()return Found(diff --git a/products/workflows/backend/facade/data_suggestions.py b/products/workflows/backend/facade/data_suggestions.pyindex b030541997ae..7e153d784260 100644--- a/products/workflows/backend/facade/data_suggestions.py+++ b/products/workflows/backend/facade/data_suggestions.py@@ -7,7 +7,6 @@ from products.workflows.backend.facade.contracts import BuiltSuggestion, DataSugfrom products.workflows.backend.services.data_suggestions import servicefrom products.workflows.backend.services.data_suggestions.premade import waiting_premade_countfrom products.workflows.backend.services.data_suggestions.service import (- FEATURE_FLAG_KEY,build_caller,count_waiting_data_suggestions,data_suggestions_acting_user,@@ -22,7 +21,6 @@ from products.workflows.backend.services.data_suggestions.service import (from products.workflows.backend.tasks.data_suggestions import build_data_suggestion, generate_data_suggestions__all__ = [- "FEATURE_FLAG_KEY","build_caller","count_waiting_data_suggestions","data_suggestions_acting_user",diff --git a/products/workflows/backend/presentation/views/workflow_data_suggestions.py b/products/workflows/backend/presentation/views/workflow_data_suggestions.pyindex 7ab325d47c1e..e856ad287ad4 100644--- a/products/workflows/backend/presentation/views/workflow_data_suggestions.py+++ b/products/workflows/backend/presentation/views/workflow_data_suggestions.py@@ -3,7 +3,6 @@ from typing import Any, castfrom django.db import modelsimport structlog-import posthoganalyticsfrom drf_spectacular.utils import extend_schema, extend_schema_fieldfrom rest_framework import serializers, status, viewsetsfrom rest_framework.decorators import action@@ -23,7 +22,6 @@ from products.workflows.backend.facade.contracts import (WorkflowIdeaAlreadyResolved,)from products.workflows.backend.facade.data_suggestions import (- FEATURE_FLAG_KEY,build_caller,email_sender_ready,get_data_suggestions,@@ -215,7 +213,7 @@ class WorkflowDataSuggestionsViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):@extend_schema(operation_id="workflow_data_suggestions_current", responses={200: DataSuggestionsResponseSerializer})@action(detail=False, methods=["get"])def current(self, request: Request, **kwargs: Any) -> Response:- self._user_with_feature(request)+ self._user(request)return self._suggestions_response(get_data_suggestions(team=self.team))@extend_schema(@@ -225,7 +223,7 @@ class WorkflowDataSuggestionsViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):)@action(detail=False, methods=["post"])def generate(self, request: Request, **kwargs: Any) -> Response:- user = self._user_with_feature(request)+ user = self._user(request)payload = DataSuggestionGenerateRequestSerializer(data=request.data)payload.is_valid(raise_exception=True)result = start_data_suggestions(team=self.team, user=user, refresh=payload.validated_data["refresh"])@@ -243,7 +241,7 @@ class WorkflowDataSuggestionsViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):)@action(detail=False, methods=["post"])def build(self, request: Request, **kwargs: Any) -> Response:- user = self._user_with_feature(request)+ user = self._user(request)payload = DataSuggestionBuildRequestSerializer(data=request.data)payload.is_valid(raise_exception=True)suggestion_id = payload.validated_data["suggestion_id"]@@ -311,17 +309,8 @@ class WorkflowDataSuggestionsViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):except Exception as e:logger.warning("workflows.data_suggestions.created_event_failed", team_id=self.team_id, error=str(e))- def _user_with_feature(self, request: Request) -> User:+ def _user(self, request: Request) -> User:user = request.user- if (- not isinstance(user, User)- or not user.distinct_id- or not posthoganalytics.feature_enabled(- FEATURE_FLAG_KEY,- user.distinct_id,- groups={"organization": str(self.organization.id)},- group_properties={"organization": {"id": str(self.organization.id)}},- )- ):+ if not isinstance(user, User):raise PermissionDenied("This feature is not available.")return userdiff --git a/products/workflows/backend/presentation/views/workflow_setup.py b/products/workflows/backend/presentation/views/workflow_setup.pyindex 863806d0ef68..c04db1c03ea1 100644--- a/products/workflows/backend/presentation/views/workflow_setup.py+++ b/products/workflows/backend/presentation/views/workflow_setup.py@@ -1,6 +1,5 @@from typing import Any-import posthoganalyticsfrom drf_spectacular.utils import extend_schemafrom rest_framework import serializers, viewsetsfrom rest_framework.decorators import action@@ -9,15 +8,11 @@ from rest_framework.response import Responsefrom posthog.api.routing import TeamAndOrgViewSetMixinfrom posthog.dataclasses import frozen-from posthog.models import Userfrom posthog.utils import absolute_urifrom products.workflows.backend.facade.contracts import SetupStepfrom products.workflows.backend.facade.enums import SetupStepKeyfrom products.workflows.backend.facade.setup_status import email_sending_paused, get_setup_steps-from products.workflows.backend.presentation.views.workflow_data_suggestions import (- FEATURE_FLAG_KEY as DATA_SUGGESTIONS_FLAG_KEY,-)# The steps an email can't send without. The rest make sending safer or faster but never block it._REQUIRED_TO_SEND = (SetupStepKey.CHANNEL, SetupStepKey.DOMAIN)@@ -93,9 +88,6 @@ class WorkflowSetupStatusSerializer(serializers.Serializer):allow_null=True,help_text="The first step that is not done, or null when every step is done.",)- data_suggestions_available = serializers.BooleanField(- help_text="Whether workflows-data-suggestions-list can suggest workflows from this project's events."- )class WorkflowSetupViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):@@ -119,7 +111,6 @@ class WorkflowSetupViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):"ready_to_send_email": all(done[key] for key in _REQUIRED_TO_SEND) and not paused,"email_sending_paused": paused,"next_open_step": next((step.key for step in steps if not step.done), None),- "data_suggestions_available": self._data_suggestions_available(request),}).data)@@ -133,16 +124,3 @@ class WorkflowSetupViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):"next_step": copy.next_step,"app_url": absolute_uri(f"/project/{self.team.id}{copy.path}"),}-- def _data_suggestions_available(self, request: Request) -> bool:- user = request.user- if not isinstance(user, User) or not user.distinct_id:- return False- return bool(- posthoganalytics.feature_enabled(- DATA_SUGGESTIONS_FLAG_KEY,- user.distinct_id,- groups={"organization": str(self.organization.id)},- group_properties={"organization": {"id": str(self.organization.id)}},- )- )diff --git a/products/workflows/backend/services/data_suggestions/README.md b/products/workflows/backend/services/data_suggestions/README.mdindex b580ca4097e7..4f9680568669 100644--- a/products/workflows/backend/services/data_suggestions/README.md+++ b/products/workflows/backend/services/data_suggestions/README.md@@ -1,7 +1,6 @@# Data suggestionsSuggests workflows built from a project's own events, on the Workflows empty state.-Everything is behind the `workflows-data-suggestions` feature flag.## How it worksdiff --git a/products/workflows/backend/services/data_suggestions/service.py b/products/workflows/backend/services/data_suggestions/service.pyindex cbfca25421e7..55b1ec9f4a2b 100644--- a/products/workflows/backend/services/data_suggestions/service.py+++ b/products/workflows/backend/services/data_suggestions/service.py@@ -101,8 +101,6 @@ _GENERATING = DataSuggestionsResult(status="generating", suggestions=())_BUILDING = BuiltSuggestion(status="building")_BUILD_FAILED = BuiltSuggestion(status="failed")_UNAVAILABLE = DataSuggestionsResult(status="unavailable", suggestions=())-# pinned: feature flag key - the frontend gates the same surfaces on it-FEATURE_FLAG_KEY = "workflows-data-suggestions"_ONCE_PER_PERSON_STAGES = frozenset({"signup", "onboarding"})# A project without a verified sender cannot pick one yet, so the field says what to do first.NO_SENDER_FIELD = "Email sender (no verified sender yet: add a sending domain under Workflows > Channels)"@@ -123,18 +121,6 @@ def get_data_suggestions(*, team: Team) -> DataSuggestionsResult:return _read_cache(team) or _UNAVAILABLE-def is_data_suggestions_enabled(user: User, organization_id: str) -> bool:- return bool(- user.distinct_id- and posthoganalytics.feature_enabled(- FEATURE_FLAG_KEY,- user.distinct_id,- groups={"organization": organization_id},- group_properties={"organization": {"id": organization_id}},- )- )--def data_suggestions_acting_user(team: Team) -> User | None:"""The organization's longest-standing owner or admin, who runs the models when ideas are prepared ahead of time."""membership = (@@ -150,12 +136,10 @@ def data_suggestions_acting_user(team: Team) -> User | None:return membership.user if membership is not None else None-def count_waiting_data_suggestions(*, team: Team, user: User) -> int:+def count_waiting_data_suggestions(*, team: Team) -> int:"""The ideas this person would see on the empty workflows page. Like `get_data_suggestions`, it never runs a model."""if HogFlow.objects.filter(team_id=team.id).exclude(status=HogFlow.State.ARCHIVED).exists():return 0- if not is_data_suggestions_enabled(user, str(team.organization_id)):- return 0result = get_data_suggestions(team=team)return len(result.suggestions) if result.status == "ready" else 0diff --git a/products/workflows/backend/test/test_owned_workflow_health.py b/products/workflows/backend/test/test_owned_workflow_health.pyindex a476773d99f7..1d6759a8b60c 100644--- a/products/workflows/backend/test/test_owned_workflow_health.py+++ b/products/workflows/backend/test/test_owned_workflow_health.py@@ -77,15 +77,14 @@ class TestOwnedWorkflowHealth(ClickhouseTestMixin, BaseTest):@parameterized.expand([- ("ideas wait on the empty page", None, True, "ready", 3),- ("a workflow replaces the empty page", HogFlow.State.DRAFT, True, "ready", 0),- ("only archived workflows keep the empty page", HogFlow.State.ARCHIVED, True, "ready", 3),- ("flag off", None, False, "ready", 0),- ("still generating", None, True, "generating", 0),+ ("ideas wait on the empty page", None, "ready", 3),+ ("a workflow replaces the empty page", HogFlow.State.DRAFT, "ready", 0),+ ("only archived workflows keep the empty page", HogFlow.State.ARCHIVED, "ready", 3),+ ("still generating", None, "generating", 0),])def test_counts_ideas_only_where_the_empty_page_shows_them(- self, _name: str, existing: str | None, flag_on: bool, status: DataSuggestionsStatus, expected: int+ self, _name: str, existing: str | None, status: DataSuggestionsStatus, expected: int) -> None:if existing:self._flow("Existing", status=existing)@@ -101,8 +100,5 @@ class TestOwnedWorkflowHealth(ClickhouseTestMixin, BaseTest):)suggestions = DataSuggestionsResult(status=status, suggestions=(idea,) * 3 if status == "ready" else ())- with (- patch("posthoganalytics.feature_enabled", return_value=flag_on),- patch(f"{SERVICE}.get_data_suggestions", return_value=suggestions),- ):- assert count_waiting_data_suggestions(team=self.team, user=self.user) == expected+ with patch(f"{SERVICE}.get_data_suggestions", return_value=suggestions):+ assert count_waiting_data_suggestions(team=self.team) == expecteddiff --git a/products/workflows/backend/test/test_workflow_setup_status.py b/products/workflows/backend/test/test_workflow_setup_status.pyindex 9ed6fe33ccf3..295020c053a0 100644--- a/products/workflows/backend/test/test_workflow_setup_status.py+++ b/products/workflows/backend/test/test_workflow_setup_status.py@@ -1,5 +1,4 @@from posthog.test.base import APIBaseTest-from unittest.mock import patchfrom django.utils import timezone@@ -14,15 +13,6 @@ from products.workflows.backend.models.team_workflows_config import TeamWorkflowclass TestWorkflowSetupStatusAPI(APIBaseTest):- def setUp(self) -> None:- super().setUp()- flag = patch(- "products.workflows.backend.presentation.views.workflow_setup.posthoganalytics.feature_enabled",- return_value=False,- )- flag.start()- self.addCleanup(flag.stop)-def _status(self) -> dict:response = self.client.get(f"/api/projects/{self.team.id}/workflow_setup/status/")assert response.status_code == status.HTTP_200_OK, response.json()diff --git a/products/workflows/backend/tests/api/test_workflow_data_suggestions.py b/products/workflows/backend/tests/api/test_workflow_data_suggestions.pyindex 8639fd90ad21..6db63a850bff 100644--- a/products/workflows/backend/tests/api/test_workflow_data_suggestions.py+++ b/products/workflows/backend/tests/api/test_workflow_data_suggestions.py@@ -63,7 +63,6 @@ from products.workflows.backend.tests.api.test_hog_flow_action_email import _emaSERVICE = "products.workflows.backend.services.data_suggestions.service"EVENT_VOLUME = "products.workflows.backend.services.data_suggestions.event_volume"VIEW = "products.workflows.backend.presentation.views.workflow_data_suggestions"-FLAG = f"{VIEW}.posthoganalytics.feature_enabled"def _idea(trigger_event: str) -> WorkflowIdea:@@ -109,13 +108,11 @@ def _email_step(step_id: str, subject: str, **overrides: object) -> PlannedStep:)-@patch(FLAG, return_value=True)class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):def setUp(self) -> None:super().setUp()cache.delete(_cache_key(self.team))self.jev_configured = patch(f"{SERVICE}.system_one_configured", return_value=True).start()- # FLAG patches the shared feature_enabled, which the privacy mode check reads too.self.privacy_mode = patch(f"{SERVICE}.is_privacy_mode_enabled", return_value=False).start()patch(f"{SERVICE}.classify_event_stages", return_value={}).start()self.addCleanup(patch.stopall)@@ -142,7 +139,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):return response.json()@patch(f"{SERVICE}.suggest_ideas")- def test_suggests_only_busy_events_and_caches_the_answer(self, suggest_ideas: MagicMock, _flag) -> None:+ def test_suggests_only_busy_events_and_caches_the_answer(self, suggest_ideas: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started"), _idea("made_up_event")]for index in range(3):_create_event(team=self.team, event='clicked "buy"', distinct_id=f"person-{index}")@@ -164,9 +161,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.classify_event_stages")@patch(f"{SERVICE}.suggest_ideas")- def test_ranks_welcome_flows_above_busier_events(- self, suggest_ideas: MagicMock, classify: MagicMock, _flag- ) -> None:+ def test_ranks_welcome_flows_above_busier_events(self, suggest_ideas: MagicMock, classify: MagicMock) -> None:classify.return_value = {"query executed": "other", "trial_started": "trial", "user_registered": "signup"}suggest_ideas.return_value = [_idea("query executed"),@@ -184,7 +179,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.classify_event_stages")@patch(f"{SERVICE}.suggest_ideas")- def test_keeps_the_models_first_idea_per_stage(self, suggest_ideas: MagicMock, classify: MagicMock, _flag) -> None:+ def test_keeps_the_models_first_idea_per_stage(self, suggest_ideas: MagicMock, classify: MagicMock) -> None:classify.return_value = {"user_registered": "signup", "query executed": "signup", "trial_started": "trial"}suggest_ideas.return_value = [_idea("user_registered"),@@ -202,7 +197,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.classify_event_stages")@patch(f"{SERVICE}.suggest_ideas")def test_jev_stages_override_the_llm_label_and_reach_the_prompt(- self, suggest_ideas: MagicMock, classify: MagicMock, _flag+ self, suggest_ideas: MagicMock, classify: MagicMock) -> None:classify.return_value = {"query executed": "onboarding", "trial_started": "other"}suggest_ideas.return_value = [_idea("trial_started"), _idea("query executed")]@@ -230,7 +225,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):ideas: list,suggest_ideas: MagicMock,classify: MagicMock,- _flag,) -> None:classify.side_effect = classify_errorclassify.return_value = {}@@ -241,7 +235,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert classify.call_count == 1@patch(f"{SERVICE}.suggest_ideas")- def test_an_empty_answer_is_retried_soon(self, suggest_ideas: MagicMock, _flag) -> None:+ def test_an_empty_answer_is_retried_soon(self, suggest_ideas: MagicMock) -> None:suggest_ideas.return_value = [_idea("made_up_event")]with time_machine.travel(timezone.now(), tick=False) as clock:@@ -252,13 +246,13 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert suggest_ideas.call_count == 2@patch(f"{EVENT_VOLUME}.estimated_weekly_events", return_value=2 * FULL_SCAN_MAX_WEEKLY_EVENTS)- def test_large_teams_get_sampled_counts_scaled_back_up(self, _estimate: MagicMock, _flag) -> None:+ def test_large_teams_get_sampled_counts_scaled_back_up(self, _estimate: MagicMock) -> None:counts = weekly_counts(self.team)assert counts["query executed"] % 2 == 0@patch(f"{EVENT_VOLUME}.estimated_weekly_events", return_value=10**9 * FULL_SCAN_MAX_WEEKLY_EVENTS)- def test_events_a_sample_misses_are_counted_exactly(self, _estimate: MagicMock, _flag) -> None:+ def test_events_a_sample_misses_are_counted_exactly(self, _estimate: MagicMock) -> None:assert weekly_counts(self.team) == {"trial_started": 3,"signed_up": 2,@@ -266,7 +260,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):"query executed": 30,}- def test_counts_every_event_past_the_default_row_limit(self, _flag) -> None:+ def test_counts_every_event_past_the_default_row_limit(self) -> None:names = [f"quiet_{index}" for index in range(150)]for name in names:_create_event(team=self.team, event=name, distinct_id="person-1")@@ -275,7 +269,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert set(names) <= set(weekly_counts(self.team))@patch(f"{SERVICE}.suggest_ideas")- def test_a_queued_retry_reads_building_not_the_old_failure(self, suggest_ideas: MagicMock, _flag) -> None:+ def test_a_queued_retry_reads_building_not_the_old_failure(self, suggest_ideas: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]suggestion_id = self._list()["suggestions"][0]["id"]cache.set(_build_key(self.team.id, suggestion_id, "web"), {"status": "failed"}, 60)@@ -290,7 +284,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert retry.status == poll.status == "building"@patch(f"{SERVICE}.suggest_ideas", return_value=[])- def test_events_a_workflow_already_triggers_on_are_not_offered(self, suggest_ideas: MagicMock, _flag) -> None:+ def test_events_a_workflow_already_triggers_on_are_not_offered(self, suggest_ideas: MagicMock) -> None:HogFlow.objects.create(team=self.team,name="Existing trial flow",@@ -313,7 +307,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):)@patch(f"{EVENT_VOLUME}.execute_hogql_query")def test_a_failed_count_query_shows_nothing_and_is_not_retried_on_every_visit(- self, _name: str, error: Exception, execute: MagicMock, _flag+ self, _name: str, error: Exception, execute: MagicMock) -> None:execute.side_effect = error@@ -346,7 +340,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):_suggest_ideas: MagicMock,_allow: MagicMock,_wait: MagicMock,- _flag,) -> None:if state == "cached":cache.set(_cache_key(self.team), _to_cache(DataSuggestionsResult(status="ready", suggestions=())), 60)@@ -370,7 +363,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):)@patch(f"{SERVICE}.suggest_ideas", return_value=[])def test_a_key_needs_workflow_and_query_scopes(- self, _name: str, scopes: list[str], method: str, endpoint: str, status: int, suggest_ideas: MagicMock, _flag+ self, _name: str, scopes: list[str], method: str, endpoint: str, status: int, suggest_ideas: MagicMock) -> None:key = generate_random_token_personal()PersonalAPIKey.objects.create(label="key", user=self.user, secure_value=hash_key_value(key), scopes=scopes)@@ -400,7 +393,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):privacy_mode: bool,status: str,suggest_ideas: MagicMock,- _flag,) -> None:self.organization.is_ai_data_processing_approved = approvedself.organization.save()@@ -413,7 +405,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.classify_event_stages")@patch(f"{SERVICE}.suggest_ideas")def test_a_failed_refresh_keeps_the_working_suggestions(- self, suggest_ideas: MagicMock, classify: MagicMock, _flag+ self, suggest_ideas: MagicMock, classify: MagicMock) -> None:classify.return_value = {}suggest_ideas.return_value = [_idea("trial_started")]@@ -426,7 +418,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")def test_build_returns_a_draft_the_create_endpoint_accepts(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag+ self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(@@ -480,7 +472,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert create.status_code == 201, create.json()assert create.json()["trigger"]["filters"]["events"][0]["id"] == "trial_started"- def test_a_built_branch_has_unset_conditions_shaped_like_an_editor_branch(self, _flag) -> None:+ def test_a_built_branch_has_unset_conditions_shaped_like_an_editor_branch(self) -> None:built = build_workflow(_idea("trial_started"),PlannedWorkflow(@@ -512,7 +504,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert [item.field for item in missing_inputs(built.workflow, {})] == ["Condition: Is on a paid plan"]@patch(f"{SERVICE}.suggest_ideas")- def test_a_second_request_does_not_generate_while_one_is_running(self, suggest_ideas: MagicMock, _flag) -> None:+ def test_a_second_request_does_not_generate_while_one_is_running(self, suggest_ideas: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]assert self._list()["status"] == "ready"cache.add(_generation_lock_key(self.team), "another-run", 60)@@ -542,7 +534,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):lock_left: bool,cached: bool,suggest_ideas: MagicMock,- _flag,) -> None:self.organization.is_ai_data_processing_approved = approvedself.organization.save()@@ -556,7 +547,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert (cache.get(_cache_key(self.team)) is not None) is cached@patch(f"{SERVICE}.suggest_ideas")- def test_a_run_that_loses_its_lease_does_not_replace_the_newer_cards(self, suggest_ideas: MagicMock, _flag) -> None:+ def test_a_run_that_loses_its_lease_does_not_replace_the_newer_cards(self, suggest_ideas: MagicMock) -> None:def newer_run_takes_over(**_kwargs: object) -> list:cache.set(_generation_lock_key(self.team), "newer-run", 60)return [_idea("trial_started")]@@ -588,7 +579,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):planner_calls: int,suggest_ideas: MagicMock,plan_steps: MagicMock,- _flag,) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.side_effect = planner_error@@ -610,7 +600,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")def test_a_saved_template_offers_its_subject_and_copies_only_the_fields_it_has(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag+ self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:saved_id = create_message_template_for_test(team_id=self.team.id,@@ -641,7 +631,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")def test_a_second_build_of_the_same_suggestion_waits_for_the_first(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag+ self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]suggestion_id = self._list()["suggestions"][0]["id"]@@ -665,7 +655,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")def test_an_api_key_only_gets_drafts_its_own_create_call_accepts(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag+ self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(@@ -698,7 +688,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")def test_a_worker_saves_a_built_draft_outside_any_request(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag+ self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(first_step="welcome", steps=[_email_step("welcome", "Welcome")])@@ -716,9 +706,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")- def test_a_worker_that_lost_its_lock_saves_no_draft(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag- ) -> None:+ def test_a_worker_that_lost_its_lock_saves_no_draft(self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(first_step="welcome", steps=[_email_step("welcome", "Welcome")])suggestion_id = self._list()["suggestions"][0]["id"]@@ -732,9 +720,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")- def test_another_editor_gets_their_own_saved_draft(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag- ) -> None:+ def test_another_editor_gets_their_own_saved_draft(self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(first_step="welcome", steps=[_email_step("welcome", "Welcome")])suggestion_id = self._list()["suggestions"][0]["id"]@@ -748,7 +734,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):# A saved draft can carry access restrictions, so one editor never receives another editor's draft.assert theirs["workflow_id"] != mine["workflow_id"]- def test_a_filled_secret_counts_as_set_without_returning_its_value(self, _flag) -> None:+ def test_a_filled_secret_counts_as_set_without_returning_its_value(self) -> None:flow = HogFlow.objects.create(team=self.team,name="Draft",@@ -767,7 +753,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")def test_a_plan_that_links_to_a_missing_step_is_planned_again(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag+ self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.side_effect = [@@ -787,9 +773,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):@patch(f"{SERVICE}.plan_steps")@patch(f"{SERVICE}.suggest_ideas")- def test_a_saved_build_is_read_again_from_its_draft(- self, suggest_ideas: MagicMock, plan_steps: MagicMock, _flag- ) -> None:+ def test_a_saved_build_is_read_again_from_its_draft(self, suggest_ideas: MagicMock, plan_steps: MagicMock) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(first_step="welcome", steps=[_email_step("welcome", "Welcome")])suggestion_id = self._list()["suggestions"][0]["id"]@@ -818,9 +802,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):])def test_drafts_send_from(- # Without a method-level patch, parameterized passes the class-level flag mock before the case values.self,- _flag: MagicMock,_name: str,senders: list[str],default: str | None,@@ -843,7 +825,7 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):assert (sender.email if sender else None) == expectedassert has_verified_email_sender(self.team) is bool(senders)- def test_build_with_an_unknown_suggestion_is_not_found(self, _flag) -> None:+ def test_build_with_an_unknown_suggestion_is_not_found(self) -> None:response = self.client.post(f"/api/projects/{self.team.id}/workflow_data_suggestions/build/",{"suggestion_id": "missing"},@@ -851,11 +833,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):)assert response.status_code == 404- def test_endpoints_are_off_without_the_feature_flag(self, flag: MagicMock) -> None:- flag.return_value = False- response = self.client.get(f"/api/projects/{self.team.id}/workflow_data_suggestions/current/")- assert response.status_code == 403-@parameterized.expand([("one_project", ""),@@ -872,7 +849,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):suggest_ideas: MagicMock,plan_steps: MagicMock,capture: MagicMock,- flag: MagicMock,) -> None:suggest_ideas.return_value = [_idea("trial_started")]plan_steps.return_value = PlannedWorkflow(first_step="welcome", steps=[_email_step("welcome", "Welcome")])@@ -888,7 +864,6 @@ class TestWorkflowDataSuggestions(ClickhouseTestMixin, APIBaseTest):with self.assertRaises(CommandError):call_command("prepare_workflow_ideas")- flag.return_value = Trueassert prepare() == missing + f"team {self.team.id}: stored Follow up on trial_started, 0 failed to build\n"assert prepare() == missing + f"team {self.team.id}: skipped, 1 ideas already waiting\n"suggest_ideas.reset_mock()diff --git a/products/workflows/frontend/generated/api.schemas.ts b/products/workflows/frontend/generated/api.schemas.tsindex 780b6c4d0f52..eae7b7674733 100644--- a/products/workflows/frontend/generated/api.schemas.ts+++ b/products/workflows/frontend/generated/api.schemas.ts@@ -2698,8 +2698,6 @@ export interface WorkflowSetupStatusApi {* * `email-template` - Email template* * `first-workflow` - First workflow */next_open_step: SetupStepKeyEnumApi | null- /** Whether workflows-data-suggestions-list can suggest workflows from this project's events. */- data_suggestions_available: boolean}export type HogFlowTemplatesListParams = {diff --git a/products/workflows/frontend/setupGuide/WorkflowsPathChoice.tsx b/products/workflows/frontend/setupGuide/WorkflowsPathChoice.tsxindex 71e9e49bf9f3..a405cfff6828 100644--- a/products/workflows/frontend/setupGuide/WorkflowsPathChoice.tsx+++ b/products/workflows/frontend/setupGuide/WorkflowsPathChoice.tsx@@ -2,26 +2,12 @@ import { useActions, useValues } from 'kea'import { LemonButton } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { WorkflowDataSuggestions } from './suggestions/WorkflowDataSuggestions'import { workflowDataSuggestionsLogic } from './suggestions/workflowDataSuggestionsLogic'import { workflowsSetupGuideLogic } from './workflowsSetupGuideLogic'/** The first-run choice on the workflows empty state. The choice picks the onboarding a person gets. */export function WorkflowsPathChoice(): JSX.Element {- const { featureFlags } = useValues(featureFlagLogic)-- // The suggestions logic loads on mount, so it only mounts behind the flag.- return featureFlags[FEATURE_FLAGS.WORKFLOWS_DATA_SUGGESTIONS] ? (- <PathChoiceWithSuggestions />- ) : (- <PathButtons messagingIsPrimary />- )-}--function PathChoiceWithSuggestions(): JSX.Element {const { cards } = useValues(workflowDataSuggestionsLogic({ surface: 'empty_state' }))// The first suggestion card becomes the one primary button once cards show.diff --git a/products/workflows/frontend/setupGuide/wizard/workflowsOnboardingWizardLogic.ts b/products/workflows/frontend/setupGuide/wizard/workflowsOnboardingWizardLogic.tsindex 6b20dbca53df..09b48e850579 100644--- a/products/workflows/frontend/setupGuide/wizard/workflowsOnboardingWizardLogic.ts+++ b/products/workflows/frontend/setupGuide/wizard/workflowsOnboardingWizardLogic.ts@@ -211,7 +211,7 @@ export interface workflowsOnboardingWizardLogicMeta {canEditSendingRules: (currentTeam: TeamPublicType | TeamType | null) => booleanstepKeys: (wizardPath: WorkflowsOnboardingPath, pushEnabled: boolean) => readonly WizardStepKey[]currentStep: (stepKeys: readonly WizardStepKey[], stepIndex: number) => WizardStepKey- offersSuggestions: (wizardPath: WorkflowsOnboardingPath, featureFlags: FeatureFlagsSet) => boolean+ offersSuggestions: (wizardPath: WorkflowsOnboardingPath) => booleansuggestionsFirst: (offersSuggestions: boolean, currentStep: WizardStepKey, templatesShown: boolean) => booleanisLastStep: (stepKeys: readonly WizardStepKey[], stepIndex: number) => booleantemplates: (workflowTemplates: HogFlowTemplate[], wizardPath: WorkflowsOnboardingPath) => HogFlowTemplate[]@@ -465,12 +465,10 @@ export const workflowsOnboardingWizardLogic = kea<workflowsOnboardingWizardLogic(stepKeys: readonly WizardStepKey[], stepIndex: number): WizardStepKey =>stepKeys[Math.min(stepIndex, stepKeys.length - 1)],],- // The suggestions logic starts an AI run when it mounts, so nothing mounts it without the flag. Suggestions are- // messages to users, so the automation path never offers them.+ // Suggestions are messages to users, so the automation path never offers them.offersSuggestions: [- (s) => [s.wizardPath, s.featureFlags],- (wizardPath: WorkflowsOnboardingPath, featureFlags: FeatureFlagsSet): boolean =>- wizardPath === 'messaging' && !!featureFlags[FEATURE_FLAGS.WORKFLOWS_DATA_SUGGESTIONS],+ (s) => [s.wizardPath],+ (wizardPath: WorkflowsOnboardingPath): boolean => wizardPath === 'messaging',],suggestionsFirst: [(s) => [s.offersSuggestions, s.currentStep, s.templatesShown],diff --git a/products/workflows/mcp/apps/WorkflowSetupStatusView.tsx b/products/workflows/mcp/apps/WorkflowSetupStatusView.tsxindex 4832d7d6bb8c..ea03d8bbd79a 100644--- a/products/workflows/mcp/apps/WorkflowSetupStatusView.tsx+++ b/products/workflows/mcp/apps/WorkflowSetupStatusView.tsx@@ -16,7 +16,6 @@ export interface WorkflowSetupStatusData {ready_to_send_email: booleanemail_sending_paused?: booleannext_open_step: string | null- data_suggestions_available: boolean}export interface WorkflowSetupStatusViewProps {diff --git a/products/workflows/mcp/apps/Workflows.stories.tsx b/products/workflows/mcp/apps/Workflows.stories.tsxindex 6ca1428f2382..f510b2d49623 100644--- a/products/workflows/mcp/apps/Workflows.stories.tsx+++ b/products/workflows/mcp/apps/Workflows.stories.tsx@@ -236,7 +236,6 @@ const newProjectSetup: WorkflowSetupStatusData = {],ready_to_send_email: false,next_open_step: 'domain',- data_suggestions_available: true,}export const SetupStatusInProgress: Story = {diff --git a/products/workflows/mcp/tools.yaml b/products/workflows/mcp/tools.yamlindex d3f0dc16b093..2c55b062e9c1 100644--- a/products/workflows/mcp/tools.yaml+++ b/products/workflows/mcp/tools.yaml@@ -145,7 +145,6 @@ tools:save_draft: trueui_app: workflow-data-suggestionshooks: workflows/dataSuggestionCreateHooks- feature_flag: workflows-data-suggestionsresponse:include:- status@@ -162,7 +161,6 @@ tools:up to five minutes. 'ready' lists the suggestions, 'unavailable' or 'ai_not_approved' means there are noneto show. Present them the same way as workflows-data-suggestions-list.ui_app: workflow-data-suggestions- feature_flag: workflows-data-suggestionsresponse:include:- status@@ -196,7 +194,6 @@ tools:workflows-data-suggestions-create. 'ai_not_approved' means the organization has not approved AI dataprocessing; 'unavailable' means there is nothing to suggest right now.ui_app: workflow-data-suggestions- feature_flag: workflows-data-suggestionsresponse:include:- status@@ -522,8 +519,8 @@ tools:workflows or messaging, or asks to build an email, SMS or push workflow in a project that may not send yet.For each open step, tell the user what it needs and share its app_url, since channel and domain setup happenin the app. An email workflow can be drafted before ready_to_send_email is true, but it cannot send until it- is. Automations that only post to Slack or call webhooks need none of these steps. When- data_suggestions_available is true, offer workflows-data-suggestions-list once setup is done.+ is. Automations that only post to Slack or call webhooks need none of these steps. Offer+ workflows-data-suggestions-list once setup is done.ui_app: workflow-setup-statusfeature_flag: workflows-mcp-onboardingworkflows-stats:diff --git a/products/workflows/skills/building-workflows/references/onboarding.md b/products/workflows/skills/building-workflows/references/onboarding.mdindex 301eccd37ba5..37ac87334d1c 100644--- a/products/workflows/skills/building-workflows/references/onboarding.md+++ b/products/workflows/skills/building-workflows/references/onboarding.md@@ -6,7 +6,7 @@ The goal is the same result as the in-app setup wizard, with as few messages as## 1. Check the setup, and start the suggestionsCall `workflows-setup-status`.-It returns every setup step with `done`, a `next_step` and an `app_url`, plus `ready_to_send_email`, `email_sending_paused` and `data_suggestions_available`.+It returns every setup step with `done`, a `next_step` and an `app_url`, plus `ready_to_send_email` and `email_sending_paused`.The email steps only matter for workflows that send email.An SMS or push workflow sends through its own channel, so do not ask for the email channel or domain when the workflow has no email step.@@ -16,7 +16,7 @@ When it is true and the workflow sends email, tell the user that email sending iIf every step is done and sending is not paused, skip to the lifecycle in [SKILL.md](../SKILL.md).-If `data_suggestions_available` is true, call `workflows-data-suggestions-list` now.+Call `workflows-data-suggestions-list` now.It starts a background run, so the suggestions are ready by the time setup is done.## 2. Say what is missing, in one message@@ -45,14 +45,14 @@ It needs a project admin. If it returns a permission error, tell the user that a## 4. Offer a first workflow-When `data_suggestions_available` is true, read the suggestions with `workflows-data-suggestions-get` (or the result from step 1).+Read the suggestions with `workflows-data-suggestions-get` (or the result from step 1).Show up to three, each with its name, trigger event and one line on why it fits.Offer to start from scratch as well.When the user picks a suggestion, build it with `workflows-data-suggestions-create`.It saves a draft. Hand over to the lifecycle in [SKILL.md](../SKILL.md): test it, then enable it only after the user says so.-When suggestions are not available, ask what the workflow should do and build it from the lifecycle.+When there are no suggestions, ask what the workflow should do and build it from the lifecycle.## When the user skips the app stepsdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex ef36571abcef..2b0cdc49f5a6 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -15083,8 +15083,7 @@"idempotentHint": false,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "workflows-data-suggestions"+ }},"workflows-data-suggestions-get": {"description": "Read the suggested workflows without starting anything. Use it to check on a run that workflows-data-suggestions-list started: while status is 'generating', call it again every few seconds, for up to five minutes. 'ready' lists the suggestions, 'unavailable' or 'ai_not_approved' means there are none to show. Present them the same way as workflows-data-suggestions-list.",@@ -15098,8 +15097,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "workflows-data-suggestions"+ }},"workflows-data-suggestions-list": {"description": "Up to three workflows suggested from the project's own events, such as a welcome email for a sign-up event. Use it to help a user who is getting started with workflows. Returns the cached suggestions, or starts making them and returns status 'generating', which takes about 10 to 30 seconds: then call workflows-data-suggestions-get every few seconds until status is 'ready'. Clients that show apps render the suggestions as cards with a Create workflow button, so do not list them again. Otherwise show one line per suggestion, like 'Welcome new sign-ups: a welcome email, then tips (user_signed_up, 57 this week)', and ask which one to create. Always let the user pick, even when they only asked to set up a workflow; create one without asking only when they already named it. When email_sender_ready is false, say that first: the project has no verified email sender, so email workflows can be saved as drafts but cannot send until a sending domain is added and verified under Workflows > Channels. Then offer the suggestions. Never show the ids; the user picks by name or number, and you pass that suggestion's id to workflows-data-suggestions-create. 'ai_not_approved' means the organization has not approved AI data processing; 'unavailable' means there is nothing to suggest right now.",@@ -15113,8 +15111,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "workflows-data-suggestions"+ }},"workflows-discard-draft": {"description": "Throw away a workflow's staged draft without touching the live config. Idempotent — discarding when nothing is staged is a no-op. Returns the workflow.",@@ -15414,7 +15411,7 @@"feature_flag": "workflows-mcp-onboarding"},"workflows-setup-status": {- "description": "Which messaging setup steps the project has done: email channel, verified sending domain, opt-out categories, frequency cap, email template and first workflow. Call it first when a user asks to set up workflows or messaging, or asks to build an email, SMS or push workflow in a project that may not send yet. For each open step, tell the user what it needs and share its app_url, since channel and domain setup happen in the app. An email workflow can be drafted before ready_to_send_email is true, but it cannot send until it is. Automations that only post to Slack or call webhooks need none of these steps. When data_suggestions_available is true, offer workflows-data-suggestions-list once setup is done.",+ "description": "Which messaging setup steps the project has done: email channel, verified sending domain, opt-out categories, frequency cap, email template and first workflow. Call it first when a user asks to set up workflows or messaging, or asks to build an email, SMS or push workflow in a project that may not send yet. For each open step, tell the user what it needs and share its app_url, since channel and domain setup happen in the app. An email workflow can be drafted before ready_to_send_email is true, but it cannot send until it is. Automations that only post to Slack or call webhooks need none of these steps. Offer workflows-data-suggestions-list once setup is done.","category": "Workflows","feature": "workflows","summary": "Check messaging setup",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex a2dc5d6c02be..4c98b2178660 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -15805,8 +15805,7 @@"idempotentHint": false,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "workflows-data-suggestions"+ }},"workflows-data-suggestions-get": {"description": "Read the suggested workflows without starting anything. Use it to check on a run that workflows-data-suggestions-list started: while status is 'generating', call it again every few seconds, for up to five minutes. 'ready' lists the suggestions, 'unavailable' or 'ai_not_approved' means there are none to show. Present them the same way as workflows-data-suggestions-list.",@@ -15820,8 +15819,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": true- },- "feature_flag": "workflows-data-suggestions"+ }},"workflows-data-suggestions-list": {"description": "Up to three workflows suggested from the project's own events, such as a welcome email for a sign-up event. Use it to help a user who is getting started with workflows. Returns the cached suggestions, or starts making them and returns status 'generating', which takes about 10 to 30 seconds: then call workflows-data-suggestions-get every few seconds until status is 'ready'. Clients that show apps render the suggestions as cards with a Create workflow button, so do not list them again. Otherwise show one line per suggestion, like 'Welcome new sign-ups: a welcome email, then tips (user_signed_up, 57 this week)', and ask which one to create. Always let the user pick, even when they only asked to set up a workflow; create one without asking only when they already named it. When email_sender_ready is false, say that first: the project has no verified email sender, so email workflows can be saved as drafts but cannot send until a sending domain is added and verified under Workflows > Channels. Then offer the suggestions. Never show the ids; the user picks by name or number, and you pass that suggestion's id to workflows-data-suggestions-create. 'ai_not_approved' means the organization has not approved AI data processing; 'unavailable' means there is nothing to suggest right now.",@@ -15835,8 +15833,7 @@"idempotentHint": true,"openWorldHint": true,"readOnlyHint": false- },- "feature_flag": "workflows-data-suggestions"+ }},"workflows-discard-draft": {"description": "Throw away a workflow's staged draft without touching the live config. Idempotent — discarding when nothing is staged is a no-op. Returns the workflow.",@@ -16178,7 +16175,7 @@"feature_flag": "workflows-mcp-onboarding"},"workflows-setup-status": {- "description": "Which messaging setup steps the project has done: email channel, verified sending domain, opt-out categories, frequency cap, email template and first workflow. Call it first when a user asks to set up workflows or messaging, or asks to build an email, SMS or push workflow in a project that may not send yet. For each open step, tell the user what it needs and share its app_url, since channel and domain setup happen in the app. An email workflow can be drafted before ready_to_send_email is true, but it cannot send until it is. Automations that only post to Slack or call webhooks need none of these steps. When data_suggestions_available is true, offer workflows-data-suggestions-list once setup is done.",+ "description": "Which messaging setup steps the project has done: email channel, verified sending domain, opt-out categories, frequency cap, email template and first workflow. Call it first when a user asks to set up workflows or messaging, or asks to build an email, SMS or push workflow in a project that may not send yet. For each open step, tell the user what it needs and share its app_url, since channel and domain setup happen in the app. An email workflow can be drafted before ready_to_send_email is true, but it cannot send until it is. Automations that only post to Slack or call webhooks need none of these steps. Offer workflows-data-suggestions-list once setup is done.","category": "Workflows","feature": "workflows","summary": "Check messaging setup",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex dc9911e039bb..bf7df22e7577 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -118108,8 +118108,6 @@ export namespace Schemas {* * `email-template` - Email template* * `first-workflow` - First workflow */next_open_step: SetupStepKeyEnum | null;- /** Whether workflows-data-suggestions-list can suggest workflows from this project's events. */- data_suggestions_available: boolean;}export interface WorkflowStatsRow {diff --git a/services/mcp/tests/unit/tool-filtering.test.ts b/services/mcp/tests/unit/tool-filtering.test.tsindex 4ee04b70fcb3..9ec577e35bb8 100644--- a/services/mcp/tests/unit/tool-filtering.test.ts+++ b/services/mcp/tests/unit/tool-filtering.test.ts@@ -1139,13 +1139,12 @@ describe('Tool Filtering - Feature Flags', () => {'autoresearch','marketing-analytics-setup-plan-mcp','subscription-source-summaries',- 'workflows-data-suggestions','workflows-mcp-onboarding',]))expect(flags).toContain('ai-observability-offline-evaluations')expect(allFlags).not.toContain('dashboard-widgets')- expect(flags).toHaveLength(37)+ expect(flags).toHaveLength(36)})it('keeps human and task context wiki tools on separate scopes', () => {diff --git a/services/mcp/tests/unit/tool-schema-snapshots.test.ts b/services/mcp/tests/unit/tool-schema-snapshots.test.tsindex 4755b4f7727a..afcd4d789824 100644--- a/services/mcp/tests/unit/tool-schema-snapshots.test.ts+++ b/services/mcp/tests/unit/tool-schema-snapshots.test.ts@@ -104,7 +104,6 @@ async function loadSnapshotTools(): Promise<Tool<ZodObjectAny>[]> {'warehouse-suggestions': true,'scouts-tool-access': true,'subscription-source-summaries': true,- 'workflows-data-suggestions': true,'workflows-mcp-onboarding': true,'insight-data-checks': true,}