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.
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 |
Typeform | OAuth. Pulls responses and receives Typeform's signed webhook. |
Each completed response becomes a $survey_completed event.
Property | From |
|---|---|
| The form id |
| The submission id (also the dedupe id, so a re-pull does not double count) |
| The form's version, when the submission carries it |
| FormFlow only: the experiment and variant FormFlow recorded for the respondent |
| 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.