1542
apps/builder/public/templates/product-recommendation.json
Normal file
1542
apps/builder/public/templates/product-recommendation.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -27,7 +27,7 @@ type Props = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const TemplatesModal = ({ isOpen, onClose, onTypebotChoose }: Props) => {
|
export const TemplatesModal = ({ isOpen, onClose, onTypebotChoose }: Props) => {
|
||||||
const templateCardBackgroundColor = useColorModeValue(undefined, 'gray.800')
|
const templateCardBackgroundColor = useColorModeValue('white', 'gray.800')
|
||||||
const [typebot, setTypebot] = useState<Typebot>()
|
const [typebot, setTypebot] = useState<Typebot>()
|
||||||
const [selectedTemplate, setSelectedTemplate] = useState<TemplateProps>(
|
const [selectedTemplate, setSelectedTemplate] = useState<TemplateProps>(
|
||||||
templates[0]
|
templates[0]
|
||||||
@@ -197,7 +197,7 @@ export const TemplatesModal = ({ isOpen, onClose, onTypebotChoose }: Props) => {
|
|||||||
spacing="4"
|
spacing="4"
|
||||||
align="center"
|
align="center"
|
||||||
pb="4"
|
pb="4"
|
||||||
bgColor="white"
|
bgColor={selectedTemplate.backgroundColor ?? 'white'}
|
||||||
>
|
>
|
||||||
{typebot && (
|
{typebot && (
|
||||||
<Standard
|
<Standard
|
||||||
|
|||||||
@@ -41,6 +41,15 @@ export const templates: TemplateProps[] = [
|
|||||||
description:
|
description:
|
||||||
'Provide a free content to your prospects in exchange for their contact information.',
|
'Provide a free content to your prospects in exchange for their contact information.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Product recommendation',
|
||||||
|
emoji: '🍫',
|
||||||
|
fileName: 'product-recommendation.json',
|
||||||
|
category: 'marketing',
|
||||||
|
description:
|
||||||
|
'Näak is a company that sells energy bars, hydration mix and recovery prodcuts. This bot helps a visitor choosing the right product. It helps you qualify your lead and provide a personalized recommendation.',
|
||||||
|
backgroundColor: '#010000',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'NPS Survey',
|
name: 'NPS Survey',
|
||||||
emoji: '⭐',
|
emoji: '⭐',
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ export type TemplateProps = {
|
|||||||
category?: 'marketing' | 'product'
|
category?: 'marketing' | 'product'
|
||||||
isComingSoon?: boolean
|
isComingSoon?: boolean
|
||||||
isNew?: boolean
|
isNew?: boolean
|
||||||
|
backgroundColor?: string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user