本番に耐えるボイスエージェントのテストと設計

Testing and Designing Voice Agents for Production

本番に耐えるボイスエージェントのテストと設計

本番に耐えるボイスエージェントのテストと設計

Agentic Conversations (formally mlops.community)

0:0032:06

要約

Vapi の Amanda Martin 氏が、デモで動くボイスエージェントを実際の通話に耐えるものにする方法を語った回。複数の通話を同時に走らせるシミュレーションと CI での運用、カスケード型と full-duplex の speech-to-speech モデルの違いを説明している。後半では、沈黙が故障と受け取られる理由、1ターンの情報量、終話の作法、Squads による役割分担といった会話設計の工夫を紹介している。

この回のポイント

  • ●シミュレーションは eval と異なり、性格やシナリオを設定した通話を10〜20本同時に走らせ、LLM as judge などで採点する。新モデルが出るたびに CI で回すべきだと述べている。
  • ●システムプロンプトの1行の変更でも、エージェントの振る舞いや性格が大きく変わることがある。
  • ●GPT Live のような full-duplex の speech-to-speech モデルは、話す速度の調整や感情への反応ができ、ツール処理を別の推論モデルに任せたまま会話を続けられる。一方でハルシネーションが多く、医療のような規制産業にはリスクがあるという。
  • ●人間の脳は音声ボットも人間と同様に扱い、沈黙が続くと故障だと推測する。そのため間の取り方やチューニングが重要になる。
  • ●1ターンで20個の空き枠を読み上げるのは避けるが、細切れに聞きすぎるのも煩わしい。通話はユーザー側が終わらせる形にするのが望ましいとしている。
  • ●通話が長くなり肥大化する場合は、専門化したエージェントを Squads で引き継ぐ構成が推奨される。

章立て

  1. シミュレーションと eval の違い

    音声では eval は選択が限られる判断の検証に向き、シミュレーションは多数の通話をエンドツーエンドで走らせて採点するものだと説明する。

  2. CI への組み込みとプロンプト変更の影響

    新モデルが出るたびにシミュレーションを CI で回す意義と、1行のプロンプト変更で性格が大きく変わる点を述べる。

  3. 音声が高リスクな理由

    同期的で逃げ場のない通話では、ユーザーがいつでも離脱し信頼を失う。遅い話者や騒音環境への備えにも触れる。

  4. full-duplex モデルとカスケード構成

    GPT Live など speech-to-speech の利点とハルシネーションの課題を語り、カスケードでは複数モデルの組み合わせが必要になると説明する。

  5. 止められないエージェントの失敗談

    ゲームに組み込んだ音声エージェントが黙らなかった話や、エージェント同士の通話を止められなかった経験を共有する。

  6. Vapi のプリミティブと自前スタック

    アシスタント、Squads、バージョン管理、MCP などの部品を提供しつつ、観測や評価は他社製品とも組み合わせられると説明する。

  7. 会話設計の工夫

    沈黙が故障と受け取られる理由、1ターンの情報量、「お腹が空いた」への対応、終話の作法を語る。

  8. Squads で長い通話を扱う

    肥大化したエージェントを専門エージェントに分割し、一貫した性格を保ちながら引き継ぐ方法を紹介する。

解説記事

Vapi の開発者向け広報責任者 Amanda Martin 氏が、MLOps Community のホスト Demetrios Brinkmann 氏と、ボイスエージェントを本番運用するためのテストと会話設計について語った。デモでは動くエージェントが実際の通話で崩れるのはなぜか、その対策を整理した内容だ。

シミュレーションは eval と何が違うのか

Martin 氏によると、音声では自分で電話をかけて試せるが、大規模に検証するにはシミュレーションが必要になる。eval は「ツール呼び出しに到達し、その判断が正しかったか」のように選択肢が限られた検証に向くという。一方シミュレーションは、通話全体をエンドツーエンドで、しかも多数同時に走らせる。10本でも20本でも立ち上げ、それぞれに性格やシナリオを与え、怒った顧客やログインに困る顧客などを演じさせる。結果は LLM as judge などで採点し、基準を満たしたかを見る。

同氏は、これを CI に入れるべきだとも述べている。音声の世界でも毎週のように新モデルが出るため、トラフィックの一部を新モデルに振る前に、再びシミュレーションを回して良し悪しを確かめるという考え方だ。eval とシミュレーションの併用が良い戦略だと語っている。Vapi では、顧客が自前で同様の仕組みを作ろうとして苦労していたため、プラットフォームのプリミティブとして提供したそうだ。また、システムプロンプトの1行の変更でも性格が劇的に変わることがあり、多数の通話を回さないと気づけないと指摘している。

音声はなぜ高リスクか、モデル構成の選択

音声は同期的で、ユーザーは単一のスレッドに拘束され、何かが気に入らなければすぐ切る。そのため信頼を失うコストが高いと両者は話す。高齢の家族のようにゆっくり話す人や、騒がしい環境で電話する人への対応も、テストで確認すべき点として挙がった。

モデル構成では、音声認識、LLM、音声合成を直列につなぐカスケードに対し、聞きながら話し続ける full-duplex の speech-to-speech モデルが登場している。Vapi が最初に対応したのは GPT Live だという。話す速度を落とすよう頼めば応じ、感情的なトーンにも反応する。重い処理は別の推論モデルに委ねつつ会話を続けられるため、非同期のツール呼び出し中の「間」を開発者が埋める設計が軽くなる。ただし Martin 氏は、扱いが繊細で想定より手間がかかり、ハルシネーションも多いと述べ、医療のような規制産業ではリスクだとしている。現実にはまだカスケードで作る人が多いという見方だ。

カスケードも単純ではない。Demetrios 氏は、ノイズ除去や、会話の流れから必要な情報を先回りして取得するモデルなど、実運用では「モデルの星座」のような構成になると述べた。シンプルな予約受付程度なら標準の3モデルで足りるが、多くの場合はそれ以上が必要になる。

会話設計:人の脳は音声ボットを人として扱う

後半の中心は会話設計だ。Martin 氏は、人の脳は音声ボットとの会話も電話口の人間と同様に扱うと説明する。沈黙が続くと、人は良い方ではなく悪い方に解釈し、ボットが壊れたと考える。対面なら相手がスケジュールを調べているなどの視覚的手がかりがあるが、電話にはない。

問題は、エージェントが入力を待ち受けているため、ユーザーの発話が別のツール呼び出しを誘発して処理をやり直させたり、考え中のユーザーに割り込んだり、最悪の場合は放棄されたと判断して切断したりすることだ。同氏は、人間のコミュニケーションに関する既存の会話設計の研究がそのまま音声に応用できるとし、それをスキルとして読み込ませるのが良いのではと語った。Vapi もプロンプトのベストプラクティスをスキル化しているという。

Demetrios 氏が紹介した voca.ai の知人の話も興味深い。エージェントが少し「おバカ」な方が、人が話す速度を落として余裕を与えるため成功率が上がる。背景にオフィスの雑音を流すと安心される。ツール呼び出しなどで1秒以上かかるときは「確認します」と一声かけるべきだ、という内容だ。これは Demetrios 氏が聞いた他社の経験談であり、Martin 氏は背景音の話は初耳だと答えている。

1ターンの情報量と終話の作法

Martin 氏は、1ターンに多くを詰め込まないよう勧める。ウェブなら予約可能な枠を一覧表示できるが、音声で20枠を読み上げるのは無理だ。聞く側が途中で答えてしまい、必要な情報が揃わないままツール呼び出しに進む恐れもある。かといって「この時間はどうですか」「ではこちらは」と細切れにすれば煩わしい。その中間を探る必要があるという。

Just Eat Takeaway の知人が直面した「お腹が空いた」という入力の例では、メニューを羅列せず、過去の注文を踏まえつつ「ヘルシーなものか軽いものか」といった質問を返して絞り込むのが重要だとされた。「1を押してください」式の電話体験からは脱却すべきだとも述べている。

終わり方も重要だ。良い体験も最後の一言で台無しになり得るため、エージェントが「完了です、さようなら」と切るのではなく、ユーザーが「ありがとう、じゃあ」と言って終える形にして、主導権を人に残すと良いという。ただしこれは「ケースバイケース」だと断っている。

Squads と自前スタックの組み合わせ

通話が長くなりコンテキストが肥大化する主因は、一つのエージェントにやらせることが多すぎることだと Martin 氏は言う。対策として Vapi の Squads では、予約、修理手配、FAQ のように専門化したエージェントを用意し、必要な情報を引き継ぐ。ユーザーには継ぎ目なく見せることも、別の人格として引き継ぐこともできる。一貫性のため、基本は同じ人格を共有させる構成が多いという。声の人格がフロントエンドで、裏の仕事が別にある、という Demetrios 氏の整理も示された。

また Vapi はアシスタント、バージョン管理、トラフィック配分、MCP サーバー連携などの部品を持ちながら、観測や評価を他社ツール(Coval など)に差し替えられる点を強みとして挙げた。

まとめ

本番のボイスエージェントでは、プロンプトやモデルの小さな変更が体験を大きく変えるため、シミュレーションを CI に組み込み、多数の通話で継続的に検証する姿勢が重要になる。full-duplex モデルは有望だが、ハルシネーションの面でまだ慎重さが要る。設計面では、沈黙の扱い、1ターンの情報量、終話の主導権といった人間の会話研究に根ざした工夫が効く。日本でもコールセンターや予約受付で音声エージェントの導入が進むなか、テスト基盤と会話設計を最初から計画に入れる視点は参考になるだろう。

文字起こし(英語・自動生成)

Generally speaking, in the builds that I've seen, your calls are probably shorter than that. But yeah, you need to test. Yeah, because they're a lot more unwieldy. Just like talking to the same agent session context becomes unwieldy after a while. Because like you said, it's a single thread. I can't do anything else. I'm held hostage by this situation until I hang up. So it's like if it's past a certain amount of time, then you start to assume. We also start to assume something's wrong. We don't assume something's right. This is the other interesting thing. We assume something is wrong. We're not very optimistic about space in conversation. If I start talking, depending on what I say, I might trigger the agent to then make another tool call, and then it starts that whole process over again, or overwrites maybe something that it was doing. Or even worse, if you have it tuned really poorly, it might hang up and think the call's over. It might think I abandoned it. Another thing that we've noticed is sometimes people are like, okay, once the person's made the selection, you can still ruin the experience by having the robot be like, okay, we're done Bye. Oh, good. Like, oh, okay. Goodbye. We're booked.

We're back. Welcome in. I managed to find Amanda, brought her to the podcast room. We're going to chat for the next 30 minutes about voice agents, because it is one of my favorite things when it comes to the agent world. and Amanda's working at good old Vappy. Vappy. And if you don't know what Vappy is, you should go and ask your agent right now because it's one of the leading voice agent companies out there. Amanda's well-versed. We were literally just saying, hey, we should talk about simulations probably. Yeah. So. What's a simulation? Are we in a simulation? We weren't going to go down that path. With respect to voice agents, Yes. Simulations. How can you test your voice agents? And are simulations just evals? Is it just a certain kind of eval? What is what does it actually mean? So what's interesting about voice is you can call your agent while you're testing it, while you're building it. You can have a friend

call it. But when you think about like, how can I run a lot of tests at scale of what happens in these calls? Because you're working with models there. You're going to do your best to make the conversations consistent every time, but they're not going to be exact. So you can run evals, but evals are better with a constrained choice with voice. Like, did it get to the tool call and did that decision that happened there, is it the right one that you wanted? And with voice simulation, you want a full end-to-end call and you want many of them. You want to spin up, you could spin up 10, you could spin up 20, however many you want. And you're going to give it a personality, a scenario. You can tweak a lot of different things for how that call might go. and then you have judging at the other side. You can do LLM as judge or kind of whatever kind of judging you want. The other end is did it meet all the criteria to say, okay, this call is going to be healthy, this is good, or is it failing these? And then even after you build, you want this in your CI because so every week a new model comes out, happens in voice too, you're going to want to try that model. And how are you going to know it's good when you want to split that traffic out,

put just a little bit of that traffic on that new one? When you load that in, that new model change in, you're going to run a bunch of simulations on it again. So it should be part of your CI. You can have your evals and your simulations together is a good strategy. And so basically you're simulating an angry customer that's calling up your company. You're simulating a customer that maybe is having a hard time logging in or they have simple or complex problems. and you want that whole gambit because you want to know before I put out this whole system or this voice agent, is it going to get tripped up on things that our last version did not get tripped up on? So it's kind of like trying to prevent the future, the bad future timeline from happening, right? Yeah. And it's just a hard thing to do until you spin up a bunch of these calls. And it was definitely for Vappy, it was a friction point for customers. They were trying to essentially hack their own version of this and it's like we need a platform primitive for this people need to be able to test and feel confident when they're rolling out changes and like even a small change

to the system prompt can change the behavior or the personality of a voice agent it can be actually kind of dramatic and i think that surprises people when they're getting into developing voice agents how much just these one line changes in your prompt can change something kind of dramatic and you don't know until many calls have run oh my god that brings up such a great point on how first of all finicky voice agents can be because you're now going on this you're it's not asynchronous it is very synchronous when you're talking to a voice agent and so it's high stakes and when you have a normal agent it's not as synchronous so it's maybe not as high stakes in that regard maybe it's high stakes in other ways sure as we've seen all this week in check there's a lot of high stakes agent driven development. But when you're with this voice agent and you expect someone to be there on the other line, they can hang up at any minute because of something that you say or something that you do and they lose trust or they lose the confidence that this agent can do what it needs to

do. And then on top of that, the way that it talks, the way that it responds, it starts to build this context. And then the conversation could be like 30 minutes long. And now you're talking about a 30-minute conversation with a voice agent, that is so much different than a 30-minute conversation with a regular agent that you're typing with, right? I will say, and there are customers that need a longer-running voice agent, is that generally speaking, in the builds that I've seen, and a lot of those have voice, your calls are probably shorter than that. But yeah, you need to test. Yeah, because they do, they can break down. They're a lot more unwieldy. Just like talking to the same agent session context becomes unwieldy after a while. Voice really gets unwieldy because like you said, it's a single thread. I can't do anything else. I'm held hostage by this situation until I hang up. So it better be good and it better get the job done. Exactly. And then you start to like you want it to be fast.

That's the ideal scenario is you get the problem solved as quick as possible. But then if you're talking to somebody like my grandma who is trying to figure things out and it's like, yeah, it can be slower. It can be a much more laborious process. And you have to be ready for that, too. So it's kind of like looping around into the simulations. You want to have all of your T's crossed and your I's dotted. Who's calling? And also people get distracted. You know, somebody could be sitting next to you. Is there noise? Are they in a noisy environment? Does your agent break down when there's noise there? Is that denoising property there for you? You mentioned the grandmother or somebody needing a slower voice agent or a slower kind of more time to respond, like more silence so the agent doesn't, like, pick back up and interrupt them. One thing, and I don't know if you've had a chance to play with these yet, there's a whole new class of models, the speech-to-speech, like, full duplex models. And in VAPI we rolled out the first one we rolled out is GPT Live.

and what i noticed about it and this is really cool is if you tell it to say hey so can you slow down a little bit can you talk a little slower it can do that and i don't have to do anything to make that happen like the model can respond more empathetically more to the tone if i'm more emotional like it's um there's the models the models are getting better all the time and so it made me think of that i was like they pick up on these subtleties that you wouldn't necessarily have in these past models. And that's more because of the architecture of speech to speech, right? And we which I mean love or hate it And the chat can tell us if they played around with any speech models because the they can I don know a year ago they definitely weren there yet now it debatable I think I think we're on the edge yeah I really of that being like the way to build it it's it's still finicky it's fiddly more so than I expected and they hallucinate more think about regulated industries like i'm a health care provider i cannot risk that um yeah so but

they're also really magical there's a reason it's exciting um because you can do things like that yeah and the potential like you can see the potential of like what we're so close to with that experience and what you can have them do and just the fact that they can um in my session later i'm going to show a cascade model you're probably building with cascade still realistically but There's this idea in the speech-to-speech that they're listening and talking the whole time. And so when something comes up that's work, that's clearly work to be passed off to a tool, they just delegate it down to the reason or model, but they keep going. I don't have to tune it very carefully to make sure that my agent doesn't go, okay, let me go do XYZ work for you. And then it's like waiting for that asynchronous tool call to come back. And I have to actually, you know, design as a developer at that point, I have to design how to fill that space. That's what I've heard a lot of folks, not only design to fill the space, which is the conversational design piece, and I would love to get into that.

But let's put a little pin in that on the idea of what kind of ecosystem of models you need running when you're doing the cascading architecture. Because you don't just have text to speech or speech to text, then model and then text to speech. or I think people know what I'm talking about, but I get those confused. I talk, it turns into something that an LLM can ingest. The LLM gives the answer back, then it has to turn back into something I can hear. So much better put than I was trying to do it. You get like the TTSS and I'm just like, there's too many letters. Confuses everyone. There's everything going on. But one thing that anybody who has run a voice agent in production knows is that is a great demo. You cannot have that in production. You cannot just have that simple like, oh, cool, we just take it, turn it into text, and then text, give it to the model, and then turn it into speech, right? You have to have so many other things that are there, like the denoiser you talked about, or like a, oh, we're now going to need to retrieve something fast.

Should we just have a model that's there hanging out? And if it seems like the conversation is going in a direction that it might need this information, it retrieves it before it even needs it so that it's there. it's like here oh cool so you don't have to wait and so I've heard it put as like more of a constellation of models that you need when you're running the cascading architecture because as much as we'd like to say it's just voice in voice out and you got some LLM calls in there it is very it's unlikely yeah it gets complicated very fast and and it depends on your use case and maybe you're a smaller maybe you're a smaller business or a small agency and you are doing something very simple you're helping restaurants you know book their book their tables and answer questions about how when they're open so that you don't have to have a host at the stand 24 hours a day you know it's and that that is is a very simple use case you're probably able to get it done with yeah just the three normal models but most likely there's a lot more work to do and yeah do you need to pass off work to a decision model um you had brought up jev earlier which i haven't had a lot

of experience playing with yet, but it's very exciting for like, not for the brain behind your voice, but for the work it can do on the side or even with the outputs as you're making decisions about how your voice agent's performing. So there's different kinds of classes of models that can help support the whole cascade architecture now. And yeah, there's a lot more layers. I think what I noticed with people with voice and our coding agents, anybody can spin up a voice agent very, very quickly now. As long as you have access to an API key, you could just say, build this with Vappy. I want a voice agent that does whatever, XYZ, throw my API, I don't know where, on Cloudflare, throw it somewhere, and build it for me. Call me when you're done. It'll call you from the agent. It's magical. But then you've got to think about getting to production, and it's a whole. There's so much to learn. It's a big step, and I've definitely done that. I plugged in a voice agent to this game about horses and geometry that I was making for my daughter. and the thing that I instantly realized which I can confidently say this may have been my dumbest

agent that I built when I put it into the game all of a sudden gameplay stopped because the agent didn't know when to shut up and so it wouldn't allow us to go the next step and I was like yeah I should have probably figured that one out I felt something the other day when I was testing something and I realized I didn't have a way to stop it and I was testing agent to agent calling Oh, and they were just talking. And they just wouldn't shut. Thank you. I couldn't get them to shut. Oh, it was maddening to listen to. It was like, and would you like to propose a new time? I'm sorry, that time's not available. Could we propose this time? And I was like, okay, I need to fix this, but now I can't stop it because I just had to shut everything out. And I was like, how did I not have an off switch from the beginning? These are the things you learn when you're playing around with it. But I will say also, I would love to hear from the chat if anybody has put an agent into production. voice agent specifically like what has been the hard parts that you've gone through what has been what have you been using have you tried vapi out what do you love and how is it different the demo

to production because as we're talking about we have some stories but you probably have other ones so let us know in the chat and we'll be looking at those and throwing them up on the screen as we go about it and also since we are on this topic before we get into conversational design we should chat about we both have voice events coming up soon yes we're and you're you're going to be part of our voice agents forum that's happening on november 5th in san francisco and then the week after you all have vapicon and very exciting that's huge i know last year was a huge success and so if anybody is in san francisco or wants to come to san francisco and wants to enjoy either of these voice events you have been warned they are happening in less than a month yeah what's so cool about this year and I wasn't working at that last year but I do know a lot about like that time period and like there there just wasn't voice events like there are now like like there are and I think about there's other there's more voice voice nights and voice workshops and it's just

really cool how many people have really um kind of started to fall in love with having voice as an interface as an option and you know it's it's the models it's just like when um everything kind of turned for coding and everybody was like whoa this is magic that has happened with voice where people are like okay i now see the utility of this and they're building such cool things and i'm really excited yeah i uh we're doing a workshop for simulations with uh coval who's another great company shout out to brooke brooke is great i tried to get her down here and she's at an off site but oh man but you'll see if you come to voice agents formula meter they're doing really cool work um they also do just simulations and how to how to test and understand your agents which is another um another thing i love about working with fappy is like we have these primitives there but you can also use whatever you want like we're not going to restrict you if you like the way their product is if you want to roll your own you can plug it into our platform so i really do um i like appreciate that just a little bit more context on that because is it like you have a whole library of random things that you add together?

So it's like slow talker plus background noise plus intermittent connection. Or is it like, what are the primitives, I guess, is what I'm wondering. So it would be like you have everything you need to build from assistant through to production So you have your assistant you have squads which is like a multi and then you also have all the tuning all the access to models You have everything that you would need to do your evals observability. You have versioning and the ability to roll out traffic to different subsets of new agents. Yeah, exactly. And probably even some more I'm not thinking of, but essentially we have all the building blocks you need. Oh, and obviously give your agent tools, MCP servers. I was like, wait, we're in an MCP conference. You can just plug all your MCP servers into your voice agents. But if any one of those pieces, you're like, I have a way that I like doing this better than what you're offering, you're not locked into the entire system as a whole. You could say, I want to – observability is a common one.

I'm going to get this wrong. I get the Langs wrong. Lang Smith is the observability one, right? So that's one of them. One of them. Then there's like Ling Watch. I think there's like fused. Yeah, there's so many legs. I get the very fused. Like they're trying to make it hard on us. I think so. But whatever the main observability product is, that's a common one that I see people plug into our system because they have their own way they want to do it. And they want to get everything out, all the logs out. We have all the logging. Sometimes you want that out and somewhere else. So I really like that we can partner with other places that are hyper-focused maybe on one part of the voice stack, whether it's a model like a DeepGram, or if it's a place that's doing evals and simulations like Coval. And so you can kind of build exactly what you need no matter what it is. I heard the most San Francisco thing this week when I was talking with friends, having lunch with people when I got in, and they were like, yeah, because traces are the new oil. And I was like, wow, all right, we're going there. Welcome. Yeah, that was the big billboard that was waiting for me when I got off the plane.

I've not heard that one yet. You hear a lot of funny things, though. It's a high-energy city. It is. All right, so let's get into conversational design. We chatted about Vabicon. We chatted about the voice agent forum. And so if you want to check that out, we'll maybe throw a QR code or we'll throw the link in the chat so that you can have it, have them both. And you have a discount card? I do. I have, for the community here with me today, so I can extend that to all of you, I have a discount code to give you a free ticket for the dev community to Vapicon. So if you're going to be in San Francisco on the 11th and 12th, please find me or I will hand that to you. Or pin you on LinkedIn. Come hassle me. I want to know what you're building. I want to know why you're excited and I would love to talk to you about voice. Yes. Excellent. All right. So conversational design. This part fascinates me so much. Ever since I talked to a friend, Elliot, at voca.ai probably two years ago. And he was one of the first people that mentioned to me that for them, they have more success when the voice agent acts a little bit dumber because people slow down and they give the voice agent a little bit more room.

And then he said the other thing that was a huge unlock for him in the conversational design pace was that if you put background noise, like office noises, in the background of the voice agent, people are much more at ease. Oh, interesting. Those two things. Yeah, it's like it's not like, oh, I'm talking to a robot. It's like, oh, it's a human. But then the last thing, and then I'll let you tell me all about your conversational design hacks that you found, is that you can never leave someone hanging because there's no visual cues. You can never go off and make that tool call or go off and do something that takes longer than a second without saying, okay, let me check that out or I'm going to go see and give those cues. I'm still working if it's been a little bit longer because we don't know what's going on. We're just sitting there like, are you still there? What's going on? What's up? Yeah, that's interesting about that. I knew that people like to have the background noises.

Like, customers love that. I actually didn't. I hadn't heard yet about that. It's because it makes people kind of feel more at ease. That's really interesting. I'll have to look into if that's kind of what we found, too. Yeah, I always assume there's something behind it. So I think the coolest thing that I learned when I started kind of researching, like, you know, what what do people want out of talking with a voice agent is that are like human brains treated. And this is probably goes to that being an ease of that background noise. We treat a conversation with a voice bot the same way it would if it was a human on the phone, like in the lizard brain area. So, like, that's why the pauses we interpret pauses. We interpret the emotion in the voice. We enter. Now we might treat a robot worse, but we still like our brain interprets the space. So it's like if it's past a certain amount of time, it then you start to assume we also start to assume something's wrong. We don't assume something's right. This is the other interesting thing. We assume something is wrong. We are not very we're not very optimistic about space in conversation where it's like if I and especially when it's on the phone.

So, like, we're, like, face-to-face, if I ask you, so, like, oh, hey, can you grab coffee with me tomorrow? If you hesitate longer than feels comfortable to me, if I see you and I see maybe you're looking up your schedule, like, I have the context, like, oh, everything's fine. The visual cues are so important. But on the phone, then I don't have any of that. So if you hesitated, I'd be like, oh, man, maybe he doesn't want to have coffee with me. I don't know. Instantly go to the network. It's the human brain. Unless we have the context of, like, a particular context. So with a bot, then we just assume it's broken. We're like, this thing's not answering. And then the problem is with voice agents because they're listening for input from us as though it was, you know, a tool, an interactive thing. If I start talking, depending on what I say, I might trigger the agent to then make another tool call. And then it starts that whole process over again or overwrites maybe something that it was doing. or on the on the converse if it's it's like with the grandma example if i'm waiting and i'm thinking and we don't have our voice agent tuned well enough it might interrupt me and start talking

again or even worse if you have it tuned really poorly it might hang up and think the call's over it might think i abandoned it so you have to think about space and you can actually look at research from just conversational design in general um so we have all this research about how humans communicate and that actually applies to voice which is really cool um so we don't have to reinvent the wheel we don't have to now test how do we treat voice robots well not how do we treat how do we respond to how we treat is a whole different story but it is really cool in conversation design you can really just go back to the the research that existed before we had robots to talk to yeah you tell the agent read all this and then build yourself around it yeah oh yeah i honestly like that's what I was when I was reading some of this research in preparation for my talk today which is a lot on conversation design if you happen to be in the area um and I was like this should just be a skill I was like I'm gonna make a I was like and we do like at Vappy we have like a prompt um

I can't remember we we wrote like a prompt guide I can't remember what we call it but we we turned that into skills too so if you want like all our prompting system prompting best practices you can just load the skills you know you don't have to read it you don't have to feed this giant document to your agent um so i was reading all this research and i was like this all applies i was like you could just have conversational design skills there might be some out there already i'm probably various ones exactly you're looking at it and you're saying hey this i want to lean into this type of conversational design so i'm going to go with that or i i'm going to i'm going to load up both of these skills and i really like that yeah i mean we can help ourselves these days Everything's a skill. Well and you mentioned like you get into this place where you potentially walking all over each other or stepping on each other with that voice agent And that is what creates a horrible customer experience or just user experience It doesn have to be the customer Yeah And it's like, so the other piece to this, your agent, what happens, and I think folks

have felt this, is that you lose. Imagine your voice agent is talking, talking, talking. And if you're in that cascading thing, it gets interrupted. you potentially don't get all of that output that it was going for and that just gets lost so it was it thinks oh yeah i told you all of that but then it didn't because it got cut off and now there's almost like this ghost conversation that it just had yep and so i another thing in conversation design with voice specifically i'm like don't try to do too many things in one turn first of all like our brains like so imagine that you're you're gonna go look to book something and you're on a website, I can give you my entire calendar of availability. I can give it to you until the end of time if I want. You'll scroll through it. You'll pick times, whatever. If it's voice and I'm like, hey, I want an appointment or a booking for Wednesday, even if – so say that Wednesday had 20 open slots. You can't read 20 open slots to me. And then maybe I need to pick a person that I'm meeting too. Are you going to tell me every single name and read, we have a slot at 8, at 830, at 9, at 930?

which one would you like so you also have to design the conversation for what like the human brain can hold in one turn because you also need the human to answer everything and not to give them so much that they start to answer interrupt they don't hear the rest of the question this agent now doesn't have everything it needs for the tool call who knows what's going to happen yeah so you also have to like think in like but also you want to be careful not to break it up too much because then it's another annoyance where it's like would you like this time no okay would you like that time no Would you like that? It's such a nuanced kind of back and forth, but we have a lot of data around what people find annoying and what they don't. Yeah, my friends built a voice agent assistant for this delivery app. They work at Just Eat Takeaway, and they were saying the hardest thing is somebody will call you and say, I'm hungry. And you're like, where does the voice agent go with that? So on one hand, you kind of have your traditional recommender system. So you know what they've ordered before, hopefully, unless you're having a complete cold start problem.

But then you have to, okay, you have to have the agent prompt them with, are you in the mood for something healthy, something light? And then you can try and bucket different things. And it's really about the ability for the voice agent to go back and throw more questions on you. Yeah. Because if it just starts saying, well, we've got hamburgers and we've got this and that, and it's, again, that listing things. it makes it so cumbersome on the user and so you have to find this happy medium between how do we say everything that needs to be said but not a word more yeah that's a really good way to put it um and yeah make it feel natural we don't we don't we have phone experience where it's a list of options already the press one press two like we don't need we don't want that anymore we can do better than that so it's yeah how do you make it a real conversation and get them the information that they need and not make it awkward another thing that we've noticed is sometimes people are like okay once the person's made the selection and the work of the call is done

you can still ruin the experience by having the robot be like okay we're done bye like oh good like oh okay goodbye we're booked like and then you're just like oh okay that's a nice little tip yeah where you're like thank you all right oh god that was awkward yeah because the other thing about humans is um a good experience can be ruined by the very last like utterance too we're really we remember it's the last thing we remember so it's like you could look back and go well yeah i was able to figure out what i wanted to eat and order something but then it just kind of hung up on me i was like yeah that's yeah it's rude it doesn't and then you're like well i guess if whatever it was fine but like fine it finds not the bar we want to make delightful experiences and you can so you have to think about the entire conversation from that first utterance to how does the middle of the conversation go and then leave them and a lot of times you have to what I notice helps and this is such an it depends thing is making it so the way the conversation goes the person is always the one saying that the call is done like okay thanks bye and then you're hanging

up versus the agent being like okay cool I did it later fill out the survey tell me how we did because then the human's in control of the interaction so that's you know we like that Speaking of this and just where the conversation goes, as we were mentioning before, it can get a little bit bloated when you're having a longer conversation. Have you seen folks using like nodes to have a new prompt be put in as you walk through stages of a conversation? Is that like a common practice? What we recommend for that, and this is how our platform handles it, it will depend on how you build, but the times that agents get too bloated is when they usually have too many things that they can do. And so then you would want to use, for us it's called squad, so you have more specialized agents. Like maybe this is your appointment booking agent. That's what it specializes in. It's got its system prompt, its set of tools. but maybe you're a business that also needs essentially like a maintenance spot too for

ordering repairs or just a frequently asked questions for somebody that like just needs information on the business and if you feel like you're in a business where people have long-winded conversations you can break up that work so that it's like passing that information from the call that needs to come from the bot one whatever that entryway bot was into the next one it's seamless to the user unless you want to. You could make it different personalities. Like, oh, I'm going to hand you off to Sally. You can do that if you want. But you can actually just make it seamless. So in the background, it's that, yeah, this is a – you're being handed to a specialized agent that's going to have more guardrails on that context. So that's like one way to handle it. Okay, so the first question that comes out is how do you keep the consistency? That is very important. So they share a personality. So there's different ways to approach this. you can inject things, you can build them independently and hook them together so that they would be unique. But more than likely, you're going to build them so they have the same underlying personality if you're trying to do it. So it's just a handoff and specialization.

So at that point, it just has different information. And then if it says something that it needs to go back to a different bot, then you would just hand it back. So it's about like the work it can do. But, yeah, you can give them different personalities if you wanted to. It really depends on the experience you're trying to build. It's almost like the voice agent and that personality is the front end and the back end is all of the other stuff that it can do. Yeah. The work that it does. I'm just getting word that we have to now keep this moving, this trend. So we're going to wrap this up now. Oh, my goodness. We've been yapping. We were worried that we wouldn't have enough to talk about. We could keep going. I know. I honestly can geek out about voice agents for days. It's really cool. There's a lot to learn. And I think once you touch one, then you start getting into the little nuance of all the little levers you can pull and play and the things you can add voice to. We didn't even talk about avatars. And that's a whole new thing that's coming. They creep me out is where I stand, just so you know. But I feel like it'll get better. Yeah, it will get more.

Just like the robot over in the room over there creeps me out. I don't want to be near it. Well, this has been awesome. Amanda, thank you. And for anybody that is out there watching, I'm about to look at the comments. So hopefully you aren't roasting us too much in them. we'll be back in 10 minutes with another podcast. Until then, enjoy this little segment we put together for you. Thanks, everybody. Thank you.

番組の概要欄(原文)

<p>A phone call has no loading spinner. Callers hear every pause; they talk over the agent when it says too much, and they hang up the moment something feels off. <em>Amanda Martin</em>, Head of Developer Relations at <a href="https://vapi.ai/" target="_blank" rel="noopener noreferer">Vapi </a> (at the time of the interview), joins us to talk about what it takes to turn a voice agent that works in a demo into one that holds up with real callers.</p><p><br></p><p>We start with testing. Amanda explains why changing one line of a system prompt can change an agent&#39;s whole personality, and how simulations run ten or twenty full calls at once, each with its own caller personality and scenario, then score the results before anything reaches production. She also makes the case for running simulations in CI every time a new model comes out. From there, we compare the classic cascade of speech-to-text, LLM, and text-to-speech with new full-duplex speech-to-speech models like GPT-Live. These keep talking while a separate reasoner handles the tool calls, but they still hallucinate more, which is a problem in regulated industries like healthcare.</p><p><br></p><p>The second half is about conversation design. Amanda explains why our brains treat a voice bot like a person on the phone and assume something is wrong when it goes quiet. She covers why an agent should never read out twenty open slots, what it should do when a caller just says &quot;I&#39;m hungry&quot;, and why the caller, not the agent, should be the one to end the call. We also cover Squads for long calls, an agent-to-agent test call Amanda couldn&#39;t switch off, and why an agent that sounds a little less clever can make callers more patient.</p><p><br></p><p>Demetrios Brinkmann: <a href="https://www.linkedin.com/in/dpbrinkm" target="_blank" rel="noopener noreferer">https://www.linkedin.com/in/dpbrinkm</a></p><p>Amanda Martin: <a href="https://www.linkedin.com/in/amandamartin-dev" target="_blank" rel="noopener noreferer">https://www.linkedin.com/in/amandamartin-dev</a></p><p><br></p><p>Timestamps:</p><p>[00:00] Cold open</p><p>[01:00] Simulations vs evals</p><p>[02:51] Simulations in your CI</p><p>[04:22] Why voice is higher stakes</p><p>[06:02] Slow callers and noisy rooms</p><p>[06:58] Full-duplex speech-to-speech</p><p>[09:09] A constellation of models</p><p>[12:07] The agent with no off switch</p><p>[15:22] Bring your own stack</p><p>[18:23] Conversation design hacks</p><p>[20:08] Why silence sounds broken</p><p>[22:09] Conversation research as a skill</p><p>[24:30] Less per turn</p><p>[27:04] Nail the goodbye</p><p>[28:25] Squads for long calls</p>

出典・この記事について

番組
Agentic Conversations (formally mlops.community)(Demetrios)
元の回
Testing and Designing Voice Agents for Production
配信日
要約作成日
公式サイト
mlops.community

この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について

X でシェアSpotify で聴くApple Podcasts で聴く

関連エピソード