https://medium.com/ios-os-x-development/api-ai-with-swift-3-e65df33d3d35
 
https://medium.com/@mirkoj/tutorial-build-a-simple-bot-with-swift-node-and-wit-cab3929d8f3c
 
https://github.com/SOBotics/SwiftChatSE
 
these links may helps you.