Open scinfu opened 7 years ago
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.
How to get welcome message?