watson-developer-cloud / python-sdk

:snake: Client library to use the IBM Watson services in Python and available in pip as watson-developer-cloud
https://pypi.org/project/ibm-watson/
Apache License 2.0
1.45k stars 828 forks source link

integration with Watson assistant #753

Closed imshubh17 closed 4 years ago

imshubh17 commented 4 years ago

Remember, an issue is not the place to ask questions. If you have issues with the APIs or have a question about the Watson services, see Stack Overflow.

Before you open an issue, please check if a similar issue already exists or has been closed before.

Check service status

  1. For service issues or 5xx errors, first, go to the IBM Cloud status page and check the status of the service.
  2. If the service status is OK, continue with a bug report.


Overview What is the issue? Be concise and clear. ibm_cloud_sdk_core.api_exception.ApiException: Error: Resource not found, Code: 404 , X-global-transaction-id: 137791589e573f5d6e0c0cc581cdad21
Expected behavior What did you expect to happen?

Actual behavior What actually happened?

How to reproduce Help us to reproduce what you experienced. Include your code snippets (without credentials)

Screenshots If applicable, add screenshots to help explain your problem.

SDK Version Please provide the SDK version here. v2

Additional information:

assistant = AssistantV2( version='2020-04-04', authenticator = authenticator )

assistant.set_service_url('url')

response = assistant.create_session(assistant_id='id').get_result()

print(response)

mamoonraja commented 4 years ago

@imshubh17 Thanks for opening the issue, looks like assistant_id provided by you is not a valid one. Did you pass in id as mentioned in the code snippet you provided?

imshubh17 commented 4 years ago

I used assistant id which I got from assistant chatbot, here in code I didn't mentioned. I was trying to integrate chatbot with flask application but I didn't get proper guidance.

mamoonraja commented 4 years ago

which assistant chatbot did you get the assistant id from?

imshubh17 commented 4 years ago

IMG_20200630_073032 I used these details from assistant chatbot and at the place of assistant id I used skill id which is showing in this image.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.