Module: Legion::Extensions::MicrosoftTeams::Runners::AiInsights

Extended by:
Definitions
Includes:
Helpers::Lex, Helpers::Client
Defined in:
lib/legion/extensions/microsoft_teams/runners/ai_insights.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers::Client

#bot_connection, #graph_connection, #oauth_connection, #user_path

Class Method Details

.trigger_wordsObject



13
14
15
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 13

def self.trigger_words
  %w[insight insights summary callrecord recorded]
end

Instance Method Details

#get_call_record(call_id:) ⇒ Object



99
100
101
102
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 99

def get_call_record(call_id:, **)
  response = graph_connection(**).get("communications/callRecords/#{call_id}")
  { result: response.body }
end

#get_meeting_ai_insight(meeting_id:, insight_id:, user_id: 'me') ⇒ Object



42
43
44
45
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 42

def get_meeting_ai_insight(meeting_id:, insight_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/aiInsights/#{insight_id}")
  { result: response.body }
end

#get_meeting_recording(meeting_id:, recording_id:, user_id: 'me') ⇒ Object



72
73
74
75
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 72

def get_meeting_recording(meeting_id:, recording_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/recordings/#{recording_id}")
  { result: response.body }
end

#list_call_recordsObject



85
86
87
88
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 85

def list_call_records(**)
  response = graph_connection(**).get('communications/callRecords')
  { result: response.body }
end

#list_meeting_ai_insights(meeting_id:, user_id: 'me') ⇒ Object



26
27
28
29
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 26

def list_meeting_ai_insights(meeting_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/aiInsights")
  { result: response.body }
end

#list_meeting_recordings(meeting_id:, user_id: 'me') ⇒ Object



56
57
58
59
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 56

def list_meeting_recordings(meeting_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/recordings")
  { result: response.body }
end