Progressive response in python is showing
def progressive_response(event,context): token = event["context"]["System"]["apiAccessToken"] request_id = event['request']['requestId'] headers = {"Content-Type": "application/json", "Authorization": "Bearer {}".format(token)} body = { "header":{ "requestId" : "{}".format(request_id) }, "directive" : { "type" : "VoicePlayer.Speak", "speech" : "Ok, give me a minute " } } progressiveURL = "https://api.eu.amazonalexa.com/v1/directives" progressive = requests.post(progressiveURL, json=body, headers=headers) return progressive.status_code == 204 def temp_intent(event, context): x=5 y=6 if (x>y): progressive_response(event,context) return "greater"