Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome message #32

Open
scinfu opened this issue May 5, 2017 · 1 comment
Open

Welcome message #32

scinfu opened this issue May 5, 2017 · 1 comment

Comments

@scinfu
Copy link

scinfu commented May 5, 2017

How to get welcome message?

@magicmikek
Copy link

magicmikek commented Feb 17, 2018

let request = ApiAI.shared().textRequest()
        
        request?.query = "Hi"
        
        
        request?.setMappedCompletionBlockSuccess({(request, response) in
            let response = response as! AIResponse
         
            self.sendRobotText(response.result.fulfillment.speech)
            
        }, failure: {(request, error) in
            print("error")
        })
        
        ApiAI.shared().enqueue(request)

Just make a request with the Welcome Message and retrieve the request to greet the user. Or make your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants