def METHOD_NAME(self, request):
    question = "Unknown"
    try:
        response, status = self.verify_api_key_usage(request)
        if response is not None:
            return response, status
        responses = []
        for user_sentences in request.json["sentences_batch"]:
            replace_phrases = ["thanks.", "thank you.", "please."]
            for phrase in replace_phrases:
                if user_sentences[-1] != phrase:
                    user_sentences[-1] = user_sentences[-1].replace(phrase, "").strip()
            userid = uuid.uuid4().hex
            # if user said let's chat at beginning of a dialogue, that we should response with greeting
            for i, s in enumerate(user_sentences):
                # s = s if i != 0 else f"BEGIN_USER_UTTER {s}"
                answer = self.ask_question(userid, self.preprocesser.process(s))
            if "DEFAULT_SORRY_RESPONCE" in answer:
                answer = "Sorry, I don't have an answer for that!"
            untagged_text, ssml_tagged_text = create_amazon_ssml_markup(answer)
            if NULL_RESPONSE.lower() in untagged_text.lower():
                confidence = 0.2
            elif "unknown" in untagged_text.lower():
                confidence = 0.0
                untagged_text = ""
            elif len(untagged_text.split()) <= 3:
                confidence = 0.6
            elif untagged_text:
                confidence = 0.98
            else:
                confidence = 0
            print(
                "user_id: {}; user_sentences: {}; curr_user_sentence: {} answer: {}; ssml_tagged_text: {}".format(
                    userid, user_sentences, user_sentences[-1], untagged_text, ssml_tagged_text
                )
            )
            responses.append([untagged_text.strip(), confidence, {"ssml_tagged_text": ssml_tagged_text}])
        return responses, 200
    except Exception as excep:
        sentry_sdk.capture_exception(excep)
        return self.format_error_response(userid, question, str(excep)), 500