DB Collections
Users Collection
The Users Collection serves as the starting point of the VoiceGenie database. It contains essential user information, including:
- User Email: Used to find the
userId. - Workspace: Displays the associated workspace in the format
ObjectId(""). - User Authentication:
- If
userIdstarts with"auth", the user has logged in manually using a username and password. - If
userIdstarts with"google", the user has logged in via Google authentication.
- If
Once we retrieve the userId, we can access other collections where relevant data is linked through this identifier.
UserQuota Collection
The UserQuota Collection tracks usage-related details for each user. It contains:
- planName: The current subscription plan.
- availableMinutes: Remaining minutes available for use.
- usedMinutes: Total minutes used.
- availableAgents: Number of agents the user can still utilize.
- availableAssistants: Number of assistants the user can create.
- usedAssistants: Number of assistants already in use.
Additional quota-related parameters linked using the userId.
Assistants Collection
The Assistants Collection stores assistant-related data, including:
- transferToAgent: Indicates whether calls should be transferred to a human agent.
- callOpeningMessage: The initial greeting message.
- script: The defined conversation flow.
- default_language: The default language used by the assistant.
CampaignCallData Collection
The CampaignCallData Collection contains information related to campaign calls, storing details about the ongoing and completed campaign calls.
CallSessionHistories Collection
The CallSessionHistories Collection stores data related to call sessions. It includes:
- AIconfig
- Script of the Call: The structured dialogue used during calls.
- Assistant Data: Information about the assistant handling the call.
- Dialer Type: Defines the service provider used for dialing:
twilioplivo
- TTS Provider: Specifies which Text-to-Speech (TTS) integration is used, such as:
elevenlabs- Other providers
- Transcriber: Defines the Assistant’s Response Behavior:
- Rapid Mode: Uses
Deepgramfor transcription. - Thoughtful Mode: Uses
Azurefor transcription.
- Rapid Mode: Uses
ContactListData Collection
The ContactListData Collection holds lists of contacts used in various campaigns and sessions.