2
0

(setVariable) Add Transcription system var (#1507)

Closes #1484
This commit is contained in:
Baptiste Arnaud
2024-05-15 14:24:55 +02:00
committed by GitHub
parent ec7ff8d9ca
commit 40f21203b5
102 changed files with 2911 additions and 986 deletions

View File

@ -587,7 +587,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},
@ -2679,10 +2680,10 @@
}
}
},
"/v1/typebots/{typebotId}/analytics/totalAnswersInBlocks": {
"/v1/typebots/{typebotId}/analytics/inDepthData": {
"get": {
"operationId": "analytics-getTotalAnswers",
"summary": "List total answers in blocks",
"operationId": "analytics-getInDepthAnalyticsData",
"summary": "List total answers in blocks and off-default paths visited edges",
"tags": [
"Analytics"
],
@ -2753,123 +2754,8 @@
"total"
]
}
}
},
"required": [
"totalAnswers"
]
}
}
}
},
"400": {
"description": "Invalid input data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.BAD_REQUEST"
}
}
}
},
"401": {
"description": "Authorization not provided",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.UNAUTHORIZED"
}
}
}
},
"403": {
"description": "Insufficient access",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.FORBIDDEN"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.NOT_FOUND"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
}
}
}
}
}
}
},
"/v1/typebots/{typebotId}/analytics/totalVisitedEdges": {
"get": {
"operationId": "analytics-getTotalVisitedEdges",
"summary": "List total edges used in results",
"tags": [
"Analytics"
],
"security": [
{
"Authorization": []
}
],
"parameters": [
{
"in": "path",
"name": "typebotId",
"schema": {
"type": "string"
},
"required": true
},
{
"in": "query",
"name": "timeFilter",
"schema": {
"type": "string",
"enum": [
"today",
"last7Days",
"last30Days",
"monthToDate",
"lastMonth",
"yearToDate",
"allTime"
],
"default": "last7Days"
}
},
{
"in": "query",
"name": "timeZone",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"totalVisitedEdges": {
},
"offDefaultPathVisitedEdges": {
"type": "array",
"items": {
"type": "object",
@ -2889,7 +2775,8 @@
}
},
"required": [
"totalVisitedEdges"
"totalAnswers",
"offDefaultPathVisitedEdges"
]
}
}
@ -5022,7 +4909,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},
@ -8480,7 +8368,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},
@ -11203,43 +11092,25 @@
"type": "boolean",
"nullable": true
},
"lastChatSessionId": {
"type": "string",
"nullable": true
},
"answers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"createdAt": {
"type": "string"
},
"resultId": {
"type": "string"
},
"blockId": {
"type": "string"
},
"groupId": {
"type": "string"
},
"variableId": {
"type": "string",
"nullable": true
},
"content": {
"type": "string"
},
"storageUsed": {
"type": "number",
"nullable": true
}
},
"required": [
"createdAt",
"resultId",
"blockId",
"groupId",
"variableId",
"content",
"storageUsed"
"content"
]
}
}
@ -11252,6 +11123,7 @@
"isCompleted",
"hasStarted",
"isArchived",
"lastChatSessionId",
"answers"
]
}
@ -11515,43 +11387,25 @@
"type": "boolean",
"nullable": true
},
"lastChatSessionId": {
"type": "string",
"nullable": true
},
"answers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"createdAt": {
"type": "string"
},
"resultId": {
"type": "string"
},
"blockId": {
"type": "string"
},
"groupId": {
"type": "string"
},
"variableId": {
"type": "string",
"nullable": true
},
"content": {
"type": "string"
},
"storageUsed": {
"type": "number",
"nullable": true
}
},
"required": [
"createdAt",
"resultId",
"blockId",
"groupId",
"variableId",
"content",
"storageUsed"
"content"
]
}
}
@ -11564,6 +11418,7 @@
"isCompleted",
"hasStarted",
"isArchived",
"lastChatSessionId",
"answers"
]
}
@ -17011,7 +16866,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},
@ -22665,7 +22521,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},
@ -25492,7 +25349,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},

View File

@ -1851,6 +1851,10 @@
"First name": "John",
"Email": "john@gmail.com"
}
},
"sessionId": {
"type": "string",
"description": "If provided, will be used as the session ID and will overwrite any existing session with the same ID."
}
}
}
@ -3675,7 +3679,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},
@ -7818,7 +7823,8 @@
"Result ID",
"Random ID",
"Phone number",
"Contact name"
"Contact name",
"Transcript"
]
}
},