Git Product home page Git Product logo

google / ios-chatbot Goto Github PK

View Code? Open in Web Editor NEW
90.0 11.0 34.0 5.64 MB

Home Page: https://cloudplatform.googleblog.com/2017/07/how-to-build-a-conversational-app-that-sees-listens-talks-and-translates-using-Cloud-Machine-Learning-APIs-part-1.html

License: Apache License 2.0

Objective-C 99.28% Ruby 0.38% JavaScript 0.07% Python 0.26%
cocoapods ai-agents chatbot cloud-api xcode speech

ios-chatbot's Introduction

Chatbot with API.AI and Google Cloud APIs

This sample demonstrates how to build an iOS chatbot with Google Cloud Vision, Speech, and Translate APIs and API.AI.

English Demo The Google Assistant / Google Home Demo

Prerequisites

Quickstart

  • Clone this repo and cd into this directory.
  • Run pod install to download and build Cocoapods dependencies.
  • Open the project by running open ChatBot.xcworkspace.
  • In CBDefines.m, replace your google API key with the API key obtained above.
  • Build and run the app.

API keys

  1. Create a new project on https://console.cloud.google.com.
  2. Enable Billing.
  3. Go to API Manager.
  4. Go to Credentials
  5. Create credentials. Choose API Key.
  6. Replace @"your google API key" with your google API key in CBDefines.m

API.AI

Optionally, follow these steps to create your own API.AI agents.

  1. Create TourGuide agent.
  2. Go to Settings and import api.ai/TourGuide.zip.
  3. (Optional steps to support Chinese) Create TourGuideChinese agent with language set to Chinese.
  4. Go to Settings and import api.ai/TourGuideChinese.zip
  5. Replace CBApiAiToken with your API.AI token in CBDefines.m. You can find your token from the API.AI agent setting page.

Chinese Demo

Chinese Demo

License

This sample is released under the Apache 2.0 license.

Disclaimer

This is not an official Google product.

Authors

Chang Luo and Bob Liu

ios-chatbot's People

Contributors

pokerchang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.