https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it possible to mandate that chat users complete...
# ❓・ai-evy-support
m
@AI Evy is it possible to mandate that chat users complete a form (name + email) prior to engaging with the chat agenet?
a
Thanks for tagging me @mcnft_. I'll look through relevant sources and get back to you shortly.
### Answer --- Based on the available documentation, I don't have specific information about mandating form completion (name + email collection) before users can engage with a Retell AI chat agent [(1) ]() . The documentation covers creating chat agents and using the chat widget [(2) ]() , but doesn't detail pre-chat form requirements or user authentication flows. I could try to provide a general answer about common implementation patterns if you'd like, but the specific capability isn't explicitly documented in the available sources. For detailed implementation guidance on this specific requirement, you might want to: - Check out [Create chat agent]() - Visit [Contact Sales]() - Visit [) Would you like me to try providing a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy what post chat data retrieval variables are available automatically with a chat agent? Is chat duration a standard field sent in the webhook package?
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Get Chat](https://docs.retellai.com/api-references/get-chat) ​
### Answer Based on the available documentation, the Get Chat API provides several post-chat data retrieval variables automatically [(1) ]() : Standard Chat Data Variables: - `chat_id`: Unique identifier for the chat - `agent_id`: Corresponding chat agent ID - `chat_status`: Status of chat (ongoing, ended, error) - `start_timestamp`: Begin timestamp (milliseconds since epoch) - `end_timestamp`: End timestamp (milliseconds since epoch) - `transcript`: Full transcription of the chat - `message_with_tool_calls`: Transcript weaved with tool call invocation and results - `metadata`: Arbitrary object for storage purposes Chat Analysis Data: - `chat_analysis`: Post-chat analysis including sentiment, status, summary, and custom defined data - `user_sentiment`: User sentiment analysis - `chat_successful`: Boolean indicating if chat was successful - `chat_summary`: Summary of the chat interaction - `custom_analysis_data`: Custom defined analysis data Cost Information: - `chat_cost`: Cost breakdown including product costs and combined cost Dynamic Variables: - `retell_llm_dynamic_variables`: Dynamic variables injected into prompts - `collected_dynamic_variables`: Dynamic variables collected during the chat Regarding chat duration specifically, while the documentation shows
start_timestamp
and
end_timestamp
fields , chat duration as a calculated field is not explicitly mentioned as a standard webhook variable. However, you can calculate duration using the start and end timestamps provided . The documentation indicates that chat analysis data is available after the chat ends and you can subscribe to the
chat_analyzed
webhook event type to receive it once ready .
m
@AI Evy is there a link to the transcript?
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Create Chat](https://docs.retellai.com/api-references/create-chat) [[2] List Chat](https://docs.retellai.com/api-references/list-chat) [[3] Create Web Call](https://docs.retellai.com/api-references/create-web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available documentation, there isn't a direct URL link to the transcript for chat interactions like there is for calls [(1) ]() [(2) ]() . For calls, Retell AI provides several transcript-related URLs in the call response [(3) ]() : - `public_log_url`: Contains details about requests/responses and latency tracking - `recording_url`: Audio recording of the call However, for chats, the transcript data is provided directly in the API response as text fields [(1) ]() [(2) ]() : - `transcript`: The full transcription as a string - `message_with_tool_calls`: Transcript weaved with tool call invocation and results The chat transcript is returned as part of the chat object data rather than as a separate downloadable URL . You would need to extract and store this transcript data from the API response or webhook payload if you need it in a separate format.
m
@AI Evy do test chats send webooks with the post call summary? If not, how do I send tests for those?
a
Thanks for the follow-up, @mcnft_. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Webhook](https://www.retellai.com/glossary/webhook) [[2] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[3] Webhook not working for CHAT agent](https://discord.com/channels/1186424376300679209/1400447738465878077) ​
### Answer Based on the available documentation, I don't have specific information about whether test chats send webhooks with post-chat summaries or how to specifically test webhook functionality for chat agents. The documentation shows that webhooks are event-driven messages that can be triggered by specific events like call completion or data collection [(1) ]() . For AI voice agents, webhooks can update CRMs, trigger follow-up actions, and push data to analytics dashboards when events occur [(1) ]() [(2) ]() . However, there's a Discord discussion mentioning that webhook events might not be working as expected for chat agents, with a suggestion to "check webhook execution logs after triggering the chat" [(3) ]() . For detailed guidance on testing webhook functionality with chat agents and post-chat summaries, you might want to: - Visit [Contact Sales]() - Visit [) - Check out these potentially useful sources: [Webhook]() , [Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI]() Would you like me to try providing a general answer based on my knowledge instead?