question

newuser-5b793f85-5a66-4925-8d5d-f53991d01515 avatar image

Problem in indetify the phone number

I've 2 intents one named "name" and the second one named "phone".

And it can identify accurately during evaluation test. But during testing in Alexa simulator, it gives me totally different answer. It identifies the number as None value and person intent!

I am using Flask-Ask.


 
                
@ask.launch
def launch():
    speech_text = 'Welcome to the Alexa Leave Management, You can start with hi or hello'
    return question(speech_text)
    # return question(speech_text).reprompt(speech_text).simple_card('HelloWorldIntent', speech_text)


@ask.intent('hello')
def hello_world():
    speech_text = 'Can you please tell me your Name?'
    return question(speech_text)
@ask.intent('phone')
def number():
    speech_text = "okay"
    # print(number)
    return question(speech_text)
@ask.intent('name',mapping={'person': 'name'})
def name(name):
    print(session.attributes )

    speech_text= "Thank you  {}, tell me your number".format(name)
    print(speech_text)
    return question(speech_text)


alexa skills kitalexaintentspythonalexa simulator
ss.png (83.4 KiB)
ss1.png (103.9 KiB)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers