All Projects → IBM → Cognitiveconcierge

IBM / Cognitiveconcierge

Licence: apache-2.0
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Cognitiveconcierge

Kubernetes Container Service Gitlab Sample
This code shows how a common multi-component GitLab can be deployed on Kubernetes cluster. Each component (NGINX, Ruby on Rails, Redis, PostgreSQL, and more) runs in a separate container or group of containers.
Stars: ✭ 240 (+140%)
Mutual labels:  bluemix, ibmcode
node-red-dsx-workflow
This journey helps to build a complete end-to-end analytics solution using IBM Watson Studio. This repository contains instructions to create a custom web interface to trigger the execution of Python code in Jupyter Notebook and visualise the response from Jupyter Notebook on IBM Watson Studio.
Stars: ✭ 26 (-74%)
Mutual labels:  bluemix, ibmcode
Scalable Cassandra Deployment On Kubernetes
In this code we provide a full roadmap the deployment of a multi-node scalable Cassandra cluster on Kubernetes. Cassandra understands that it is running within a cluster manager, and uses this cluster management infrastructure to help implement the application. Kubernetes concepts like Replication Controller, StatefulSets etc. are leveraged to deploy either non-persistent or persistent Cassandra clusters on Kubernetes cluster.
Stars: ✭ 184 (+84%)
Mutual labels:  bluemix, ibmcode
Scalable Wordpress Deployment On Kubernetes
This code showcases the full power of Kubernetes clusters and shows how can we deploy the world's most popular website framework on top of world's most popular container orchestration platform.
Stars: ✭ 173 (+73%)
Mutual labels:  bluemix, ibmcode
ibm-cloud-functions-serverless-ocr-openchecks
Serverless bank check deposit processing with object storage and optical character recognition using Apache OpenWhisk powered by IBM Cloud Functions. See the Tech Talk replay for a demo.
Stars: ✭ 40 (-60%)
Mutual labels:  bluemix, ibmcode
detect-timeseriesdata-change
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Stars: ✭ 21 (-79%)
Mutual labels:  bluemix, ibmcode
watson-multimedia-analyzer
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode. A Node app that use Watson Visual Recognition, Speech to Text, Natural Language Understanding, and Tone Analyzer to enrich media files.
Stars: ✭ 23 (-77%)
Mutual labels:  bluemix, ibmcode
Cognitive Social Crm
An application that monitors a Twitter feed and determines customer sentiment using IBM Watson Assistant, Tone Analyzer, Natural Language Understanding, as well as CloudantDB
Stars: ✭ 71 (-29%)
Mutual labels:  bluemix, ibmcode
visualize-data-with-python
A Jupyter notebook using some standard techniques for data science and data engineering to analyze data for the 2017 flooding in Houston, TX.
Stars: ✭ 60 (-40%)
Mutual labels:  bluemix, ibmcode
banking-digitalization-using-hybrid-cloud-with-mainframes
The following journey will introduce the available Banking APIs published on IBM Cloud with logical business programs running on the IBM Z Mainframe through a simulated retail bank called MPLbank.
Stars: ✭ 21 (-79%)
Mutual labels:  bluemix, ibmcode
Serverless Home Automation
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Stars: ✭ 38 (-62%)
Mutual labels:  bluemix, ibmcode
Gameon Java Microservices On Kubernetes
This code demonstrates deployment of a Microservices based application Game On! on to Kubernetes cluster. Game On! is a throwback text-based adventure built to help you explore microservice architectures and related concepts.
Stars: ✭ 88 (-12%)
Mutual labels:  bluemix, ibmcode
Pixpic
PixPic, a Photo Editing App
Stars: ✭ 1,261 (+1161%)
Mutual labels:  ios-app
Watson Voice Bot
Create a Watson Assistant chatbot that uses voice over a web browser.
Stars: ✭ 92 (-8%)
Mutual labels:  ibmcode
Slidingtabbar
A custom TabBar view with sliding animation written in Swift.
Stars: ✭ 84 (-16%)
Mutual labels:  ios-app
Lbrnmeituan
ReactNative 仿美团项目
Stars: ✭ 84 (-16%)
Mutual labels:  ios-app
Github Native
📱 mobile github client built with react-native
Stars: ✭ 94 (-6%)
Mutual labels:  ios-app
Kotlin Mpp Standard
A standard setup for Kotlin multiplatform projects.
Stars: ✭ 92 (-8%)
Mutual labels:  ios-app
Calenstyle
Responsive Drag-&-Drop Event Calendar Library for Web, Mobile Sites, Android, iOS & Windows Phone
Stars: ✭ 83 (-17%)
Mutual labels:  ios-app
Vr Speech Sandbox Vive
ARCHIVED and UNMAINTAINED! Please note that this repository is no longer being maintained. For a current VR app please see https://github.com/IBM/vr-speech-sandbox-cardboard
Stars: ✭ 82 (-18%)
Mutual labels:  ibmcode

WARNING: This repository is no longer maintained ⚠️

This repository will not be updated. The repository will be kept available in read-only mode.

Apache 2 Build Status

CognitiveConcierge

Watson Conversation is now Watson Assistant. Although some images in this code pattern may show the service as Watson Conversation, the steps and processes will still work.

CognitiveConcierge is an end-to-end Swift application sample with an iOS front end and a Kitura web framework back end. This application also demonstrates how to pull in a number of different Watson services to your Swift client and server side apps via the Watson Developer Cloud's Swift SDK, including Watson Assistant, Text to Speech, Speech to Text, and the Natural Language Understanding service.

Included Components

  • Watson Assistant service
  • Watson Text to Speech service
  • Watson Speech to Text service
  • Watson Natural Language Understanding service
  • Google Places API

Flow

Application Workflow

  1. The user deploys the server application to IBM Cloud.

  2. The user interacts with the iOS application.

  3. When the user performs an action, the iOS application will call the server application API, which uses Watson services and the Google Places API to provide recommendations to the user.

Prerequisites

  • Obtain a Google Places API Key for Web: For this project, you'll need an API Key from Google Places, so that the app has access to user reviews which will be sent to the Natural Language Understanding service for analysis. Instructions for obtaining a key can be found here. Once you have an API Key, go to Google's Developer Console, create a project, add your API key, and enable the Google Places API for iOS as well. Make note of the API key for later use in your server and iOS applications.

If you haven't done so yet, you also need to download and install the following:

Steps

Run the following steps to deploy the application:

1. Deploy the Server Application

There are 3 ways to deploy the server application:

a) Using the Deploy to Bluemix button

Clicking on the button below creates an IBM Cloud DevOps Toolchain and deploys this application to the IBM Cloud. The manifest.yml file [included in the repo] is parsed to obtain the name of the application, configuration details, and the list of services that should be provisioned. For further details on the structure of the manifest.yml file, see the Cloud Foundry documentation.

Deploy to Bluemix

Once deployment to the IBM Cloud is completed, you can view the deployed application and services from your IBM Cloud account.

b) Using the IBM Cloud command line interface

You can also manually deploy the Server Application to the IBM Cloud. While it isn't as magical as using the "Deploy to IBM Cloud" button above, manually deploying the app provides some insight as to what's happening behind the scenes. Remember that you'd need the IBM Cloud command line installed on your system to deploy the app to the IBM Cloud.

Execute the following command to clone the Git repository:

git clone https://github.com/IBM/CognitiveConcierge

Go to the project's root folder on your system and execute the Cloud-Scripts/services/services.sh script to create the services that CognitiveConcierge depends on. Please note that you should have logged on to the IBM Cloud before attempting to execute this script. For information on how to log in, see the IBM Cloud documentation.

Executing the Cloud-Scripts/services/services.sh script:

$ ./Cloud-Scripts/services/services.sh

c) Using the IBM Cloud GUI

If you'd like to create the services manually, or don't have the IBM Cloud CLI, you can create the following services:

Before deploying your application to the cloud, you will need to update it with the Google Places API Key. In the main.swift folder, update the value in the struct with your Google Places API Key.

After the services are created and you've updated this file, you can run the bx app push YOUR_APP_NAME command from the project's root folder (CognitiveConcierge) to deploy the server application to IBM Cloud.

Once the application is running on the IBM Cloud, you can access your application's assigned URL (i.e. route). To find the route, you can log on to your IBM Cloud account, or you can inspect the output from the execution of the bluemix app push or bx app show <application name> commands. The string value shown next to the urls field contains the assigned route. Use that route as the URL to access the sample server.

$ bx app show CognitiveConcierge
Invoking 'cf app CognitiveConcierge'...

Showing health and status for app CognitiveConcierge in org [email protected] / space dev as [email protected]
OK

requested state: started
instances: 1/1
usage: 512M x 1 instances
urls: cognitiveconcierge-lazarlike-archaizer.mybluemix.net
last uploaded: Mon Jun 5 18:01:42 UTC 2017
stack: cflinuxfs2
buildpack: swift_buildpack

     state     since                    cpu    memory         disk           details
#0   running   2017-06-05 11:05:41 AM   0.3%   6.4M of 512M   269.8M of 1G

2. Update Assistant Service

  • The Watson Assistant service enables you to add a conversational natural language interface to your applications. The Watson Assistant service requires some initial workspace configuration. Go to the IBM Cloud dashboard and launch the Watson Assistant service. It should be named along the lines of CognitiveConcierge-Assistant. Populate the workspace by clicking the upload button, and then select the JSON file at Resources/conversationWorkspace.json. Take note of the workspace ID for later use in the iOS application.

3. Run the iOS Application

Install the necessary dependencies

  • From Terminal, navigate into the CognitiveConcierge/CognitiveConcierge-iOS folder, and run the following command to install the necessary dependencies (this may take some time):
carthage update --platform iOS
pod install

Update configuration for iOS app

  • Open the CognitiveConcierge.xcworkspace file in Xcode 9.4 from your terminal using open CognitiveConcierge.xcworkspace, or by double-clicking it in Finder.

  • Update CognitiveConcierge.plist file: One way to persist data in Swift is through property list or .plist files. You will need to open this file and add the credentials for all of the services you created earlier, as well as the Google Places API Key mentioned in the Prerequisites section. You can find these services in the Bluemix dashboard. Click the service name you're interested in, and then click Service Credentials. If there is no Credential created, click New Credential. If your Assistant service uses an API Key, remove the ConversationUsername and ConversationPassword keys from the file; if not, remove the ConversationIamApiKey key.

  • Update bluemix.plist file:

    • If you're running the server application locally, you should set the isLocal value to YES; if you set the value to NO, then you will be accessing the server instance running on the IBM Cloud.
    • To get the appRouteRemote value, you should go to your application's page on the IBM Cloud. There, you will find a View App button towards the top right. Clicking on it should open up your app in a new tab, and the url for this page is your route, which maps to the appRouteRemote key in the plist. Make sure to include the http:// protocol in your appRouteRemote and to exclude a forward slash at the end of the url.
    • You can also use the command bx app env CognitiveConcierge, in which appRouteRemote is the value in the uris key.
     {
      "VCAP_APPLICATION": {
       "application_id": "3d06c0e7-1fff-4dbf-b0cb-b289770eccfe",
       "application_name": "CognitiveConcierge",
       "application_uris": [
        "cognitiveconcierge-lazarlike-archaizer.mybluemix.net"
       ],
       "application_version": "3ef63168-35f5-4517-84e9-e8f19c8f34b4",
       "limits": {
        "disk": 1024,
        "fds": 16384,
        "mem": 512
       },
       "name": "CognitiveConcierge",
       "space_id": "2b3083b9-7ef9-4d55-9741-34433be4cea1",
       "space_name": "dev",
       "uris": [
        "cognitiveconcierge-lazarlike-archaizer.mybluemix.net"
       ],
       "users": null,
       "version": "3ef63168-35f5-4517-84e9-e8f19c8f34b4"
      }
     }
    
     Running Environment Variable Groups:
     BLUEMIX_REGION: ibm:yp:us-south
    
     Staging Environment Variable Groups:
     BLUEMIX_REGION: ibm:yp:us-south
    

Running the application

Press the Run button in Xcode to build and run the project in the simulator or on your iPhone!

Running the Kitura-based server locally

Before building the CognitiveConcierge-Server application, first update the credentials in the config/nlu-creds file for local development.

You can then build the CognitiveConcierge-Server by going to the CognitiveConcierge-Server directory of the cloned repository and running swift build. To start the Kitura-based server for the CognitiveConcierge app on your local system, go to the CognitiveConcierge-Server directory of the cloned repository and run .build/debug/CognitiveConcierge. You should also update the bluemix.plist and CognitiveConcierge.plist file in the Xcode project in order to have the iOS app connect to this local server. See the Update configuration for iOS app section for details.

CognitiveConcierge App video

cognitive concierge video

Learn More About

Troubleshooting

  • If the deployment for server application stage fails, redeploy the pipeline stage.
  • If the IOS application is not able to connect to Watson Services, recheck the credential values in CognitiveConcierge.plist and bluemix.plist files.

License

This code pattern is licensed under the Apache Software License, Version 2. Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.

Apache Software License (ASL) FAQ

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].