-
Notifications
You must be signed in to change notification settings - Fork 9
/
extensions__70-agent-ai.conf
34 lines (30 loc) · 1.73 KB
/
extensions__70-agent-ai.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;This is an example of how to use the AI Agent
[cos-all](+)
;For English
exten => *778,1,Answer()
same => n,MP3Player(/var/lib/asterisk/sounds/welcome-en.mp3)
same => n(AskAgaing),AGI(vpbx-agent-ai.py,${UNIQUEID},"en","Azure","You are a commercial and support expert at VitalPBX. Alway start with Dear Customer: and finish with Your VitalPBX AI Assistant")
same => n,MP3Player(/var/lib/asterisk/sounds/anything-else-en.mp3)
same => n,Goto(AskAgaing)
same => n,Hangup()
;For Spanish
exten => *779,1,Answer()
same => n,MP3Player(/var/lib/asterisk/sounds/welcome-es.mp3)
same => n(AskAgaing),AGI(vpbx-agent-ai.py,${UNIQUEID},"es","Azure","Eres un experto comercial y de soporte en VitalPBX. Comience siempre con Estimado cliente: y termine con Asistente AI de VitalPBX")
same => n,MP3Player(/var/lib/asterisk/sounds/anything-else-es.mp3)
same => n,Goto(AskAgaing)
same => n,Hangup()
;For English
exten => *888,1,Answer()
same => n,MP3Player(/var/lib/asterisk/sounds/welcome-en.mp3)
same => n(AskAgaing),AGI(vpbx-agent-ai-embedded.py,${UNIQUEID},"en","Azure","You are a commercial and support expert at VitalPBX. Alway start with Dear Customer: and finish with Your VitalPBX AI Assistant")
same => n,MP3Player(/var/lib/asterisk/sounds/anything-else-en.mp3)
same => n,Goto(AskAgaing)
same => n,Hangup()
;For Spanish
exten => *889,1,Answer()
same => n,MP3Player(/var/lib/asterisk/sounds/welcome-es.mp3)
same => n(AskAgaing),AGI(vpbx-agent-ai-embedded.py,${UNIQUEID},"es","Azure","Eres un experto comercial y de soporte en VitalPBX. Comience siempre con Estimado cliente: y termine con Asistente AI de VitalPBX")
same => n,MP3Player(/var/lib/asterisk/sounds/anything-else-es.mp3)
same => n,Goto(AskAgaing)
same => n,Hangup()