Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

ux: Customer name is hidden if unknown

Clémence Lesnéb329a34d9380
diff --git a/public_website/single.html.jinja b/public_website/single.html.jinja
index a073bf2..bb753e2 100644
--- a/public_website/single.html.jinja
+++ b/public_website/single.html.jinja
@@ -13,7 +13,7 @@ Sinistre {{ call.claim.claim_id }} ({{ call.phone_number }})
</a>
</div>
- <h1>Bonjour {{ call.claim.policyholder_name | title }} 👋🏻</h1>
+ <h1>Bonjour {{ (call.claim.policyholder_name | title) if call.claim.policyholder_name else '' }} 👋🏻</h1>
<p class="text-2xl">Votre sinistre <span class="font-mono">#{{ call.claim.claim_id }}</span> à propos de {{ call.synthesis.short | lower }} est en cours de traitement.</p>
</header>
@@ -40,7 +40,7 @@ Sinistre {{ call.claim.claim_id }} ({{ call.phone_number }})
<div class="overflow-hidden space-y-6">
{% for message in call.messages | sort(attribute='created_at') %}
{% if not (message.action == 'talk' and not message.content) %}
- {% set name = bot_name if message.persona == 'assistant' else call.claim.policyholder_name %}
+ {% set name = bot_name if message.persona == 'assistant' else (call.claim.policyholder_name or 'Client') %}
<div class="flex flex-row">
<div class="basis-6 relative self-stretch">
<div class="absolute top-0 left-0 w-full h-full -z-10">