0
當我創建createDialog()有一個ID響應對話,但我不知道這個condigo client_id和conversation_id。我在哪裏可以得到這些ID?我不知道在哪裏找到它們。我在哪裏可以找到Watson Dialog Service所需的ID?
DialogService service = new DialogService();
service.setUsernameAndPassword("{username}","{password}");
Map params = new HashMap();
params.put(DialogService.DIALOG_ID, "{dialog_id}");
params.put(DialogService.CLIENT_ID, {client_id});
params.put(DialogService.INPUT, "Hi Hello");
params.put(DialogService.CONVERSATION_ID, {conversation_id});
Conversation conversation = service.converse(params);
System.out.println(conversation);