125 | | |
126 | | **Documentation** |
127 | | |
128 | | Scopes for .history API call: |
129 | | * channels.history: collects history only from SLACK public channels |
130 | | * groups.history: same as with channels, but this one works only for private channels |
131 | | * im.history: collects chat history from private conversations |
132 | | * mpim.history: collects chat history from multi-party conversations |
133 | | * conversations.history: universal scope for all 4 API calls mentioned above, it´s functionality depends on which of those 4 scopes is chatbot allowed to use. For example: if chatbot is allowed to view groups and channels but not allowed to view private messages and multi-party conversations, those API-calls get rejected automatically without limiting other scopes |
134 | | |
135 | | List of potentionally useful information that can be obtained with SLACK API calls: |
136 | | * channels.history: |
137 | | * list of all messages, events |
138 | | * timestamps of these messages |
139 | | * users.info: |
140 | | * name, real name, team name, e-mail |
141 | | * info about user being admin, owner, bot, restriced/ultra-restricted |
142 | | * channels.info: |
143 | | * all members |
144 | | * scope of the channel (private, public, mpim..) |
145 | | * latest message |
146 | | * number of unread messages |
147 | | * topic |
148 | | * previous names |
149 | | |
150 | | |
151 | | Potential ideas: |
152 | | Hard statistics: |
153 | | * using timestamps to compute ratio of messages in certain time interval |
154 | | * using join time/leave time to compute user´s time online over certain period of time |
155 | | * limit channel history checking to certain time interval |
156 | | * limit channel history to certain scope of users (people from same team, admins...) |
157 | | * finding the moment where conversation had most messages for certain time interval |
158 | | Soft statistics: |
159 | | * identify dialogs |
160 | | * statistics for dialogs (length, participants..) |
161 | | * analysis of dialogue - keywords, named entities, topics |