IBM / online_order_processing_during_pandemics

Use Watson Assistant to automate online order processing during pandemics
Apache License 2.0
10 stars 27 forks source link

Problem in Opening the link #7

Open charlie-2201 opened 2 years ago

charlie-2201 commented 2 years ago

Can you help me fix this issue @manojjahgirdar This is the route link that got created https://covid-19-help-desk-fantastic-roan-jp.mybluemix.net/

manojjahgirdar commented 2 years ago

@charlie-2201 Have you added the Watson Assistant credentials in the watson-assistant-credentials.json file?

{
    "apikey": "<YOUR_API_KEY_HERE>",
    "url": "<URL_HERE>",
    "assistant-id": "<ASSISTANT_ID_HERE>"
}

Just replace the <YOUR_API_KEY_HERE>, <URL_HERE> and <ASSISTANT_ID_HERE> by referring to 7. Add the Credentials to the Application. It should look something like this:

{
    "apikey": "xxxxxxxxx",
    "url": "https://api.eu-gb.assistant.watson.cloud.ibm.com",
    "assistant-id": "xxxxx-xxxx-xxxx-xxxx-xxxxxx"
}
charlie-2201 commented 2 years ago

I did the changes but the problem is still the same

manojjahgirdar commented 2 years ago

@charlie-2201 Did you run the ’ibmcloud cf push’ after adding the credentials?

charlie-2201 commented 2 years ago

Yes

manojjahgirdar commented 2 years ago

Can you run ibmcloud cf logs covid-19-help-desk --recent in your terminal and send me the logs?

charlie-2201 commented 2 years ago

Screenshot (13) Screenshot (14) Screenshot (15) These are the preview of the desired statement

manojjahgirdar commented 2 years ago

@charlie-2201 The problem is with the Watson Assistant credentials that you are adding. Go to IBM Cloud Resources and select Watson Assistant service and click on launch Watson Assistant. Select the Assistant that you have created and make sure you have linked the skill to the assistant. Click on the three dots and select settings. Here you will find the Assistant ID, URL and API Key. Copy these three things in the watson-assistant-credentials.json.

Also note that URL is only upto https://api.eu-gb.assistant.watson.cloud.ibm.com not the entire URL.

Screenshot 2022-01-21 at 11 36 44 AM

If you still have issue let me know when can we get on a call and solve the issue. I have tried this in my setup and it works fine for me.

charlie-2201 commented 2 years ago

Thank you so much for your help.

charlie-2201 commented 2 years ago

Can you please tell me that how can I access the database for the same?

manojjahgirdar commented 2 years ago

Goto IBM Cloud resources and select Db2 service. Select the Service credentials tab and create a service credentials if not exists. Paste the copied json in the ibm-db2-credentials.json file and run the ibmcloud cf push command in your terminal it should work.

charlie-2201 commented 2 years ago

Actually I want to ask that if we want to implement the same for our chatbot then how can we modify the table and store the values of that table as well in our system in the same format as you implemented over dashboard.