Demo – AI-röstagent live
Testa en AI-röstagent live och se hur den hanterar riktiga samtal.
const Demo = () => { const [chatMessage, setChatMessage] = useState(''); const [chatResponse, setChatResponse] = useState(''); const [automationStep, setAutomationStep] = useState(0); const [isGenerating, setIsGenerating] = useState(false); const [isAutomating, setIsAutomating] = useState(false); const = useToast(); const simulateAIResponse = async (input: string) => { if (!input.trim()) return; setIsGenerating(true); // Simulate more intelligent responses based on input await new Promise(resolve => setTimeout(resolve, 1500)); const lowerInput = input.toLowerCase(); let response = ''; if (lowerInput.includes('hej') || lowerInput.includes('hå')) else if (lowerInput.includes('tjänst') || lowerInput.includes('service')) else if (lowerInput.includes('pris') || lowerInput.includes('kosta')) else if (lowerInput.includes('automatisering') || lowerInput.includes('automat')) else if (lowerInput.includes('röst') || lowerInput.includes('tal')) else if (lowerInput.includes('integration') || lowerInput.includes('integrera')) else setChatResponse(response); setIsGenerating(false); toast( ); }; const simulateEmailAutomation = async () => { setIsAutomating(true); setAutomationStep(0); const steps