2
0

Add Näak product recommendation template

Closes #548
This commit is contained in:
Baptiste Arnaud
2023-06-05 17:53:03 +02:00
parent ef0a2d9dc6
commit 40ef934740
4 changed files with 1554 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -27,7 +27,7 @@ type 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 [selectedTemplate, setSelectedTemplate] = useState<TemplateProps>(
templates[0]
@@ -197,7 +197,7 @@ export const TemplatesModal = ({ isOpen, onClose, onTypebotChoose }: Props) => {
spacing="4"
align="center"
pb="4"
bgColor="white"
bgColor={selectedTemplate.backgroundColor ?? 'white'}
>
{typebot && (
<Standard

View File

@@ -41,6 +41,15 @@ export const templates: TemplateProps[] = [
description:
'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',
emoji: '⭐',

View File

@@ -6,4 +6,5 @@ export type TemplateProps = {
category?: 'marketing' | 'product'
isComingSoon?: boolean
isNew?: boolean
backgroundColor?: string
}