{% extends 'base.html' %} {% load crispy_forms_tags %} {% load dashboard_extras %} {% block title %}Upload Data | Chat Analytics{% endblock %} {% block content %}

Upload Data

Back to Dashboard
Upload CSV File
{% csrf_token %} {{ form|crispy }}
CSV File Format

The CSV file should contain the following columns:

Column Description Type
session_id Unique identifier for the chat session String
start_time When the session started Datetime
end_time When the session ended Datetime
ip_address IP address of the user String
country Country of the user String
language Language used in the conversation String
messages_sent Number of messages in the conversation Integer
sentiment Sentiment analysis of the conversation String
escalated Whether the conversation was escalated Boolean
forwarded_hr Whether the conversation was forwarded to HR Boolean
full_transcript Full transcript of the conversation Text
avg_response_time Average response time in seconds Float
tokens Total number of tokens used Integer
tokens_eur Cost of tokens in EUR Float
category Category of the conversation String
initial_msg First message from the user Text
user_rating User rating of the conversation String
{% if data_sources %}
Uploaded Data Sources
{% for data_source in data_sources %} {% endfor %}
Name Description Uploaded File Sessions Actions
{{ data_source.name }} {{ data_source.description|truncatechars:50 }} {{ data_source.uploaded_at|date:"M d, Y H:i" }} {{ data_source.file.name|split:"/"|last }} {{ data_source.chat_sessions.count }}
{% endif %} {% endblock %}