Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
ui: Add infos in the public report details sections
Clémence Lesné6df0c8b470ed
diff --git a/public_website/report.html b/public_website/report.htmlindex ad730b5..086c436 100644--- a/public_website/report.html+++ b/public_website/report.html@@ -10,8 +10,8 @@<div class="grid grid-cols-6 gap-4 m-4"><!-- Top introduction --><div class="col-span-full px-4 py-8">- <h2 class="text-2xl">Hello {{ call.claim.policyholder_name | title }} 👋🏻</h2>- <p>Your claim <span class="font-mono">#{{ call.claim.claim_id }}</span> of the {{ call.claim.created_at.strftime('%d %b %Y') }} is being processed.</p>+ <h1>Hello {{ call.claim.policyholder_name | title }} 👋🏻</h1>+ <p class="text-2xl">Your claim <span class="font-mono">#{{ call.claim.claim_id }}</span> of the {{ call.claim.created_at.strftime('%d %b %Y') }} is being processed.</p></div><!-- Claim details -->@@ -23,20 +23,36 @@<tbody><tr class="border-b border-slate-100"><td class="p-4 text-gray-500">We understood</td>- <td class="p-4">{{ call.claim.incident_description }} {{ call.claim.extra_details }}</td>+ <td class="p-4">+ {{ call.claim.incident_description }}+ {{ call.claim.extra_details }}+ </td>+ </tr>+ <tr class="border-b border-slate-100">+ <td class="p-4 text-gray-500">Medical situation</td>+ <td class="p-4">+ {{ call.claim.injuries_description }}+ {{ call.claim.medical_records }}+ </td></tr><tr class="border-b border-slate-100"><td class="p-4 text-gray-500">Incident date</td><!-- TODO: Try to parse the date and display it in a human readable format -->- <td class="p-4">{{ call.claim.incident_date_time }}</td>+ <td class="p-4">+ {{ call.claim.incident_location }}, {{ call.claim.incident_date_time }}+ </td></tr><tr class="border-b border-slate-100"><td class="p-4 text-gray-500">Policy number</td>- <td class="p-4">{{ call.claim.policy_number }}</td>+ <td class="p-4">+ {{ call.claim.policy_number }}+ </td></tr><tr class="border-b border-slate-100"><td class="p-4 text-gray-500">Contact info</td>- <td class="p-4">{{ call.claim.policyholder_email | lower }}, {{ call.claim.policyholder_phone }}</td>+ <td class="p-4">+ {{ call.claim.policyholder_email | lower }}, {{ call.claim.policyholder_phone }}+ </td></tr></tbody></table>