I would like to create a test script for a IBM Watson Assistant chatbot. So I am using the Assistant V2 API.
Below code is On the IBM Watson Assistant page.
import json
from ibm_watson import AssistantV2
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
authenticator = IAMAuthenticator('{apikey}')
assistant = AssistantV2(
version='2020-02-05',
authenticator = authenticator
)
assistant.set_service_url('{url}')
response = assistant.message(
assistant_id='{assistant_id}',
session_id='{session_id}',
input={
'message_type': 'text',
'text': 'Hello'
}
).get_result()
print(json.dumps(response, indent=2))
My questions is where {url}, {session_id} are And also {workspace_id} (for using Assistant V1)?