2
0

docs: 📝 Add General settings

This commit is contained in:
Baptiste Arnaud
2022-06-29 10:03:55 +02:00
parent f4c81f2f07
commit 7caac2bc25
3 changed files with 16 additions and 3 deletions

View File

@ -12,6 +12,7 @@ import { useWorkspace } from 'contexts/WorkspaceContext'
import { GeneralSettings } from 'models'
import React from 'react'
import { isFreePlan } from 'services/workspace'
import { isDefined } from 'utils'
type Props = {
generalSettings: GeneralSettings
@ -76,13 +77,14 @@ export const GeneralSettingsForm = ({
label="Prefill input"
initialValue={generalSettings.isInputPrefillEnabled ?? true}
onCheckChange={handleInputPrefillChange}
moreInfoContent="Inputs are automatically pre-filled whenever its saving variable has a value"
moreInfoContent="Inputs are automatically pre-filled whenever their associated variable has a value"
/>
<SwitchWithLabel
id="new-result"
label="Create new session on page refresh"
initialValue={generalSettings.isNewResultOnRefreshEnabled ?? false}
label="Remember session"
initialValue={isDefined(generalSettings.isNewResultOnRefreshEnabled) ? !generalSettings.isNewResultOnRefreshEnabled : true}
onCheckChange={handleNewResultOnRefreshChange}
moreInfoContent="If the user refreshes the page, its existing results will be overwritten. Disable this if you want to create a new results every time the user refreshes the page."
/>
<SwitchWithLabel
id="query-params"

View File

@ -1,5 +1,16 @@
# Settings
## General
The general settings represent the general behaviors of your typebot.
<img src="/img/settings/general.png" width="400" alt="General" />
- **Typebot.io branding**: If enabled, will show a "Made with Typebot" badge displayed at the bottom of your bot.
- **Prefill input**: If enabled, the inputs will be automatically pre-filled whenever their associated variable has a value.
- **Remember session**: If enabled, when a user refreshes the page, its existing answers will be overwritten.
- **Hide query params on bot start**: If enabled, the query params will be hidden when the bot starts.
## Typing emulation
By default, your typebot will emulate a certain typing speed. It is considered a good default as slow as a human typing speed and it's not too fast so that multiple bubble can be readable sequentially.

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB