Get the topics members talk about with the App's AI
GET
/apps/{appId}/chat-topics
const url = 'https://api.passion.io/v1/apps/example/chat-topics?window=7d';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.passion.io/v1/apps/example/chat-topics?window=7d'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
The id of the App, as Studio shows it.
string
Query Parameters
Section titled “Query Parameters”window
required
The last 7, 30 or 90 days.
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
chatTopics
required
Any of:
object
window
required
object
start
required
string
end
required
string
conversations
required
Conversations with activity in the window.
integer
topics
required
What members talk about most, most conversations first.
Array<object>
object
topic
required
string
conversations
required
integer
blockers
required
What most often stops members, most conversations first.
Array<object>
object
blocker
required
string
conversations
required
integer
null
Examplegenerated
{ "chatTopics": { "window": { "start": "example", "end": "example" }, "conversations": 1, "topics": [ { "topic": "example", "conversations": 1 } ], "blockers": [ { "blocker": "example", "conversations": 1 } ] }}