A Brief Analysis of Chatbot Movie Crawling

The first step is to create the required application and services

All we need is the Cloud Foundry Python application, and the Watson Conversation service, which can sign up to the IBM Cloud platform and create it.

PS: Remember to connect the service with should!

 

Step 2 Set up Watson Conversation

We need to set the intent and dialog for Watson Conversation, and test the effect, here is the screenshot:

 

 

The third step is to set the environment variables

Set the environment variables for Cloud Foundry Python according to the credentials of the Watson Conversation service:

conversation = ConversationV1(

username= os.getenv('WS_USERNAME', '31656627-a102-4ceb-9aa5-4c1c4c89f837'),

password= os.getenv('WS_PASSWORD', 'f2fEnYUVACp6'), version=

os.getenv('WS_VERSION', '2017-12-01'))

 

The fourth step is to clone the item to the local

git clone https://github.com/bxtkezhan/DBCrawler.git cd DBCrawler/

It should be noted that the manifest.yml file needs to be set according to the design situation after cloning.

 

Step 5 Push the item to the remote server

1. First use cf api xxx to set the API endpoint;

2. Use cf login to log in to the account;

3. cf push push item;

Deployment completed

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325475512&siteId=291194637