docs: 📝 Add General settings
This commit is contained in:
@ -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"
|
||||
|
@ -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.
|
||||
|
BIN
apps/docs/static/img/settings/general.png
vendored
Normal file
BIN
apps/docs/static/img/settings/general.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 166 KiB |
Reference in New Issue
Block a user