odoo_client.attach_call_artifacts posts the transcript to the lead's chatter (readable in place) and attaches transcript_<sid>.txt + the stereo call WAV. bot.py wires it post-call: extract_and_record now returns the Odoo ref (persisted_to), the in-call tool path stamps it too, the audiobuffer handler records the saved WAV path, and the attach runs in a thread after the lead lands (brief wait for the async WAV write; failures only log — the lead is already safe). Verified e2e against db1: create -> attach -> verify -> delete. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7.7 KiB
7.7 KiB