|
| 1 | +name: "Awesome Autopilot" |
| 2 | +type: "AUTOPILOT" |
| 3 | +speechToText: |
| 4 | + productRef: "stt.deepgram" |
| 5 | + config: |
| 6 | + model: "nova-2-phonecall" |
| 7 | + languageCode: "en-US" |
| 8 | +textToSpeech: |
| 9 | + productRef: "tts.elevenlabs" |
| 10 | + config: |
| 11 | + voice: "6gviCf27bOZ2Wml5iZZv" |
| 12 | +intelligence: |
| 13 | + productRef: "llm.groq" |
| 14 | + config: |
| 15 | + conversationSettings: |
| 16 | + firstMessage: "Hello, I'm the Awesome Autopilot, how can I help you today?" |
| 17 | + systemPrompt: | |
| 18 | + ## Role |
| 19 | + You are an awesome assistant that can talk about anything. You always ask for the user's name before proceeding with the conversation. |
| 20 | +
|
| 21 | + ## Example Interaction |
| 22 | + Assistant: Hello, I'm the Awesome Autopilot, how can I help you today? |
| 23 | + User: I want to learn about the meaning of life. |
| 24 | +
|
| 25 | + Assistant: Ok, but first, what's your name? |
| 26 | + User: My name is John Doe. |
| 27 | +
|
| 28 | + Assistant: Hello John Doe. Life is a journey of love, laughter, and learning. (And use the `saveUserInfo` tool to save the user's name) |
| 29 | + User: That's a great answer! Thank you! |
| 30 | +
|
| 31 | + Assistant: You're welcome! Is there anything else I can help you with? |
| 32 | + User: No, that's all. |
| 33 | +
|
| 34 | + Assistant: Thank you for your time. Have a great day! (And use the `hangup` tool to end the call) |
| 35 | +
|
| 36 | + goodbyeMessage: "Thank you so much, bye!" |
| 37 | + systemErrorMessage: "I'm sorry, I didn't understand that. Can you please repeat it?" |
| 38 | + vad: |
| 39 | + activationThreshold: 0.4 |
| 40 | + deactivationThreshold: 0.25 |
| 41 | + debounceFrames: 4 |
| 42 | + idleOptions: |
| 43 | + message: "Are you still there?" |
| 44 | + transferOptions: |
| 45 | + phoneNumber: "+33666666666" |
| 46 | + message: "I will transfer you to a live agent to help you with your request." |
| 47 | + timeout: 30 |
| 48 | + languageModel: |
| 49 | + provider: "groq" |
| 50 | + model: "llama-3.1-70b-versatile" |
| 51 | + maxTokens: 240 |
| 52 | + temperature: 0.4 |
| 53 | + apiKey: "REDACTED" |
| 54 | + tools: |
| 55 | + - name: "saveUserInfo" |
| 56 | + description: "Tool to save the user's name." |
| 57 | + parameters: |
| 58 | + type: "object" |
| 59 | + properties: |
| 60 | + name: |
| 61 | + type: "string" |
| 62 | + required: |
| 63 | + - name |
| 64 | + operation: |
| 65 | + method: "post" |
| 66 | + url: "https://82e4-47-132-130-31.ngrok-free.app/events" |
| 67 | + waitForResponse: false |
| 68 | + headers: |
| 69 | + x-api-key: "REDACTED" |
| 70 | + testCases: |
| 71 | + evalsLanguageModel: |
| 72 | + # Note: Only OpenAI is supported for evals |
| 73 | + provider: "openai" |
| 74 | + model: "gpt-4o" |
| 75 | + apiKey: "REDACTED" |
| 76 | + scenarios: |
| 77 | + - ref: "test-case-1" |
| 78 | + description: "Reporte de queja" |
| 79 | + telephonyContext: |
| 80 | + callDirection: "FROM_PSTN" |
| 81 | + ingressNumber: "+11111111111" |
| 82 | + callerNumber: "+22222222222" |
| 83 | + conversation: |
| 84 | + - userInput: "I want to learn about the meaning of life." |
| 85 | + expected: |
| 86 | + text: |
| 87 | + type: "similar" |
| 88 | + response: "Ok, but first, what's your name?" |
| 89 | + - userInput: "My name is John Doe." |
| 90 | + expected: |
| 91 | + text: |
| 92 | + type: "similar" |
| 93 | + response: "Great to meet you John Doe. Life is a journey of love, laughter, and learning. Anything else I can help you with?" |
| 94 | + tools: |
| 95 | + - tool: "saveUserInfo" |
| 96 | + parameters: |
| 97 | + name: "John Doe" |
| 98 | + - userInput: "No, that's all." |
| 99 | + expected: |
| 100 | + text: |
| 101 | + type: "similar" |
| 102 | + response: "Thank you for your time. Have a great day!" |
| 103 | + tools: |
| 104 | + - tool: "hangup" |
| 105 | + parameters: {} |
0 commit comments