Build your first experience
In this tutorial we build a survey and show it to your visitors. We do all of it in the Picked dashboard.
At the end you have one experience, one step, one field, and a preview of the survey on your own site.
You will need
A Picked account, in an organization. An organization holds your projects and the people who work on them. If you have an invitation, accept it and sign in. If nobody made an organization yet, make one from the dashboard home page.
A project. A project is one site or one application. See How to create a project. Keep the project home page open, because it shows the SDK snippet that the next item needs.
The URL of your site, such as https://www.example.com. Step 5 opens it to show you
the survey. It can be a test site.
What a developer must do first
The SDK must be on your site before step 1. This happens one time, and after it you need no developer again. Send them these four tasks:
- Add the SDK to the site. The snippet and the project ID are on the project home page. See How to install the SDK.
- Make a component that renders a step form.
- Register that component under the name
ColorSurvey. Step 3 enters the same name in the dashboard, and the two names must match. - Tell you which site the SDK runs on, so you can open a preview against it.
Add Picked to your application walks a developer through all of it.
1. Make a field
A field collects one answer from your visitor.
- Open your project.
- Click Fields in the sidebar.
- Click New field.
- Enter the name
Color. The dashboard fills in the label and the key for you. - Change the label to
Which color do you like most?. Your visitors read the label, and they never see the name or the key. - Leave the key as
color. You cannot change it later. - Choose the type Text.
- Click Create field.
Your field appears in the fields list.
2. Make the experience
- Click Flows in the sidebar. The experiences list opens.
- Click New experience.
- Enter the name
Color survey. - Leave Type on the Flow option. A flow is the interactive kind, and it is what this tutorial builds. See About pages and flows for the other kind.
- Open Advanced.
- Enter the component name
ColorSurvey. This is the name your developer registered. - Click Create flow.
The flow builder opens with an empty canvas. One gray circle sits on the left. That circle is the origin, and every flow starts there.
3. Make a step
A step is one screen that your visitor sees. It holds your field. You make one from the library, on the left of the flow builder.
- Find the Steps section in the library.
- Click the + next to it.
- Enter the name
Question. The key fills in asquestion. - Click Create step.
The flow builder opens again, and your step is in the library.
4. Build the flow
- Find your
Questionstep under Steps in the library. - Drag it onto the canvas.
- Drag from the output handle of the origin to the input handle of your step. An arrow joins them.
- Drag your
Colorfield from the library onto the step node. - Click Save in the toolbar.
The subtitle of the step node now reads one field. Your flow is one step long, and it starts at the origin.
5. Preview it
A preview opens your own site with this workspace applied. Your visitors see no change.
- Click Preview in the workspace toolbar.
- Enter the URL of your site.
- Click Open preview.
Your site opens in a new tab, and your survey is on it. Enter a color and continue.
6. Publish it
- Click Publish in the workspace toolbar.
- Read the change preview. It lists what your visitors get.
- Click Publish to confirm.
Your survey is live.
What you built
You have an experience that your visitors see. The dashboard holds the flow, the step, and the field, so you change any of them and publish again without a deployment.
Where to go next
- How to build a flow — branches, actions, and conditions.
- How to run an A/B test — show a change to some visitors.
- About how Picked works — what happens when you publish.
