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: Add explicit message when Markdown cannot be parser

Clémence Lesnéa8adc1f95497
diff --git a/public_website/single.html.jinja b/public_website/single.html.jinja
index 4eab75c..44ac4a4 100644
--- a/public_website/single.html.jinja
+++ b/public_website/single.html.jinja
@@ -25,7 +25,7 @@ Claim {{ call.claim.claim_id }} ({{ call.phone_number }})
<p class="text-neutral-600 dark:text-neutral-400">No summary yet.</p>
{% else %}
<div class="space-y-2">
- {{ call.synthesis.long | markdown | safe }}
+ {{ ((call.synthesis.long | markdown) or '<p class="text-neutral-600 dark:text-neutral-400">Error while rendering the summary.</p>') | safe }}
</div>
{% endif %}
</div>