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

ui: Fix short summary display when not yet generated

Clémence Lesnéf63f9049d9cd
diff --git a/public_website/single.html.jinja b/public_website/single.html.jinja
index 558e22f..bf920f2 100644
--- a/public_website/single.html.jinja
+++ b/public_website/single.html.jinja
@@ -14,7 +14,7 @@ Sinistre {{ call.claim.claim_id }} ({{ call.phone_number }})
</div>
<h1>Hello {{ (call.claim.policyholder_name | title) if call.claim.policyholder_name else '' }} 👋🏻</h1>
- <p class="text-2xl">Your claim <span class="font-mono">#{{ call.claim.claim_id }}</span> about {{ call.synthesis.short | lower }} is currently being processed.</p>
+ <p class="text-2xl">Your claim <span class="font-mono">#{{ call.claim.claim_id }}</span> {{ ('about ' ~ call.synthesis.short | lower) if call.synthesis.short }} is being processed.</p>
</header>
<!-- Long synthesis -->