Surveys and forms: use a forms partner

Lucida does not build surveys. A forms connector (FormFlow, Typeform) sends each completed response as a $survey_completed event, and a dashboard template reads it.

Embed
Preview of the card
<a href="https://lucidace.com/help/surveys-and-forms"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/573c04af-2272-4a6f-b81b-41eeab7591aa/social-card.svg?v=3e7ae33eec8b" alt="Surveys and forms: use a forms partner" width="600" height="315"></a>

Lucida does not run surveys or a feedback inbox. Use a forms product for that, and bring the responses into Lucida as events. Then you can use them in funnels, cohorts, experiments and replay filters like any other event.

Connectors

Connector

How it works

FormFlow

Pulls completed submissions on a schedule. Only form_id is required (the API host defaults to FormFlow's).

Typeform

OAuth. Pulls responses and receives Typeform's signed webhook.

Each completed response becomes a $survey_completed event.

Property

From

survey_id

The form id

submission_id

The submission id (also the dedupe id, so a re-pull does not double count)

form_version

The form's version, when the submission carries it

experiment_id, variant

FormFlow only: the experiment and variant FormFlow recorded for the respondent

answers_count

FormFlow: how many answers there were

These are the same names a pushed $survey_response uses. For compatibility the connector also still sends the $-prefixed forms ($survey_id, $survey_submission_id, $experiment_id, $variant), and queries read either spelling.

The person is taken from the response when it carries a distinct_id or person_id, so responses join the same person as your product events.

Answer values are not imported by default. Only fields you list in the connector's fields setting arrive, as {"<field id>": "<property name>"}.

Send from your own app

You do not need a connector. Send one $survey_completed per submission, and optionally one $survey_response per answer (NPS and rating responses has the full event). Use the same survey_id and submission_id on both so Lucida counts each submission and each answer once even when a connector pulls the same data.

// Browser or Node SDK
lucida.capture("$survey_completed", {
  survey_id: "onboarding",
  submission_id: "sub_8841",
  form_version: 3,
  experiment_id: "exp_onb",   // optional
  variant: "B",               // optional
});
lucida.capture("$survey_response", {
  survey_id: "onboarding",
  submission_id: "sub_8841",
  question_id: "nps_main",
  question_type: "nps",
  response: 9,
});

Or over HTTP:

curl -X POST "$CAPTURE/i/v0/e/" -H "Content-Type: application/json" -d '{
  "api_key": "'"$PROJECT_KEY"'", "event": "$survey_completed", "distinct_id": "user_42",
  "properties": {"survey_id": "onboarding", "submission_id": "sub_8841", "form_version": 3}
}'

Dedupe rule: an answer is (survey_id, submission_id, question_id), and a submission is (survey_id, submission_id). Sending both a pulled and a pushed copy never double counts.

The dashboard template

Create a dashboard from builtin:form-response (Dashboards, templates, "Form responses"). It has submissions per form (a trend broken down by the form, survey:id) and a response rate by experiment arm: a 14-day funnel from $feature_flag_called to $survey_completed, broken down by $feature_flag_response. "Submissions" counts every $survey_completed plus the submissions that only arrived as pushed $survey_response answers (by submission_id, when no $survey_completed has it). When you instantiate it, pass flag_key (your experiment's flag key) so the funnel only counts exposures to that flag; without it every flag exposure is counted.

Updated