skit_pipelines.pipelines.fetch_calls_pipeline package¶
Module contents¶
- fetch_calls_pipeline(lang: str, start_date: str = '', end_date: str = '', client_id: str = '', ignore_callers: str = '', reported: bool = False, template_id: str = '', use_case: str = '', flow_name: str = '', min_duration: str = '', asr_provider: str = '', states: str = '', intents: str = '', call_quantity: int = 200, call_type: str = '', remove_empty_audios: bool = True, notify: str = '', channel: str = '', slack_thread: str = '', use_fsm_url: bool = False, flow_ids: str = '')[source]¶
A pipeline to randomly sample calls for a given voice-bot project.
Example payload to invoke this pipeline via slack integrations:
@charon run fetch_calls_pipeline
{ "client_id": 1, "start_date": "2020-01-01", "lang": "en", "end_date": "2020-01-01", "reported": false, "call_quantity": 200 }
- Parameters
client_id (str, optional) – The comma separated client ids as per fsm db.
start_date (str) – The start date range to filter calls in YYYY-MM-DD format.
lang (str) – The language code of the calls to filter. eg: en, hi, ta, te, etc.
end_date (str) – The end date range to filter calls in YYYY-MM-DD format.
ignore_callers (str, optional) – Comma separated list of callers to ignore, defaults to “”
reported (bool) – Pick only reported calls, defaults to False
template_id (str, optional) – The flow template id to filter calls, defaults to “”
use_case (str, optional) – Voice bot project’s use-case, defaults to “”
flow_name (str, optional) – Identifier for a whole/part of a voicebot conversation flow, defaults to “”
min_duration (str, optional) – Call duration filter, defaults to “”
asr_provider (str, optional) – The ASR vendor (google/VASR), defaults to “”
states (str, optional) – Filter calls in a comma separated list of states, defaults to “”
intents (str, optional) – Filter turns in sampled calls from a comma separated list of intents, defaults to “”
call_quantity (int, optional) – Number of calls to sample, defaults to 200
call_type (str, optional) – inbound, outbound vs subtesting call filters. We can currently choose only one of these, or defaults to “INBOUND” and “OUTBOUND” both
remove_empty_audios (bool) – to remove calls with call audios being empty/broken, defaults to True
notify (str, optional) – A comma separated list of slack ids: “@apples, @orange.fruit” etc, defaults to “”
channel (str, optional) – The slack channel to send the notification, defaults to “”
slack_thread (str, optional) – The slack thread to send the notification, defaults to “”
use_fsm_url (bool, optional) – Whether to use turn audio url from fsm or s3 path., defaults to False
flow_id (str, optional) – Id for a whole/part of a voicebot conversation flow, defaults to “”