This document will help in implementing Answers v2 in Experience Designer.
Prerequisites
Introduction on Answers v2Answers v2
Answers v2 Manager node Answers v2 Manager node
Experience Manager
Log into the Experience manager in Experience Manager> Develop> Experience Developer.
Import the below sample flow code in Experience designer.
[{"id":"99fa810c.329a1","type":"answers-vnext","z":"ee4ae15d.b1088","kbId":"61c3fdd8cd380d0071872df2","kbName":"Answer KB","rootType":"ancestor","endsession":false,"skillConfig":"22d30497.f9bafc","x":420,"y":140,"wires":[["70d4e650.1e7928"]]},{"id":"cee9ebf4.2f9778","type":"alexa-http kgraphgroupintent","z":"ee4ae15d.b1088","name":"","graphId":"61c3fdd8cd380d0071872df2","kb":"","version":"v2","graphName":"Answer KB","graphToken":"vhaxfr","state":"","skillConfig":"22d30497.f9bafc","x":170,"y":140,"wires":[["99fa810c.329a1"]]},{"id":"70d4e650.1e7928","type":"alexa-say","z":"ee4ae15d.b1088","name":"","saytext":"<p>{{msg.payload.multiagent.voice.sayText}}</p>","reprompttext":"","chatText":"","chatRePrompt":"","screenShortTitle":"","screenLongTitle":"","screenBody":"","screenSmallImage":"","screenLargeImage":"","ablabel":"","endsession":false,"lastIntent":"","requireLastIntent":false,"buttons":"{\"type\":\"\",\"name\":\"\",\"choices\":[]}","exporttext":"{\n \"voice\": {\n \"sayText\": \"<p>{{msg.payload.multiagent.voice.sayText}}</p>\",\n \"rePrompt\": \"\"\n },\n \"chat\": {\n \"chatText\": \"\",\n \"rePrompt\": \"\"\n },\n \"screen\": {\n \"shortTitle\": \"renderedShortTitle\",\n \"longTitle\": \"renderedLongTitle\",\n \"body\": \"\",\n \"smallImage\": \"renderedSmallImage\",\n \"largeImage\": \"renderedLargeImage\"\n },\n \"buttons\": {\n \"type\": \"buttonObj.type\",\n \"name\": \"buttonObj.name\",\n \"choices\": \"buttonObj.choices\"\n }\n}","disableAnyState":false,"x":670,"y":140,"wires":[["860f0670.de9a88"]]},{"id":"860f0670.de9a88","type":"alexa-http response","z":"ee4ae15d.b1088","name":"","x":890,"y":140,"wires":[]},{"id":"bd2b9498.22f428","type":"alexa-http intent","z":"ee4ae15d.b1088","name":"","skillConfig":"22d30497.f9bafc","url":"/alexa_test","intent":"Labelvhaxfr","lastIntent":"","x":170,"y":180,"wires":[["99fa810c.329a1"]]},{"id":"22d30497.f9bafc","type":"alexa-skill-config","skillname":"Answer vNext","projectId":"61c3fd65cd380d0071872d92","intents":"[]","skillstate":"fromsession, useSymptomChecker, escalation,help,emergency,whyhelpmessage,scheduleride,Januvia,medication,callorcomeby,survey2,glucose,faqquestion,flow,reminder,DailySurveyInProgress,HeadacheSurveyInProgress,MonthlySurveyInProgress,FeedbackSurveyInProgress,AllReportsDone,AskedForChangeResponse,AskedForChangeTwice,MigraineTrackerQuestions1,MigraineTrackerQuestions2,MigraineTrackerQuestions3,StudyQuestions1,StudyQuestions2,StudyQuestions3,Help1,Help2,Help3,AskedForHeadacheStart,AskedForHeadacheStartYesterday,AskedForHeadacheStartTime,AskedForHeadacheEndTime,AskedForHeadacheTimeCorrectness,AskedForHeadacheChangeStartTime,AskedForHeadacheEndDate,InvalidHeadacheTime,AskedForContinuePartial,MaxRecognitionError,ServicePhoneNumber,ConfirmGoHome,ConfirmStop,ConfirmPause,ConfirmCancel,FORTESTING,testState,TreatmentSurgery,CheckUser,fromSession,password,plateletsFlow,chooseLocation,cancelAppointment,PlateletsChangeOption,MedicalHemochromatosis,changeappointmentList,MedicalHeart,LifestyleSTD,setDateOrTimeIntent,FAQ,setTimelanding,setDatelanding,flowManager,Reminder,sanity,flowStudio, resumePrompt,FlowStudio, fromsession, mayoKB, orbitaKB, askAnother, afterAssessment, phonePrompt, awaitingPhone, confirmPhone, finalPhonePrompt, inChunkedAnswer, appointmentPhonePrompt, test, Reminder, sanity,flow_stud,survey,flowState, reminder, CheckUser, fromSession, plateletsFlow, cancelAppointment, MedicalHeart, FAQ, flowManager, HeadacheSurveyInProgress, MonthlySurveyInProgress, FeedbackSurveyInProgress, AllReportsDone, AskedForChangeResponse, AskedForChangeTwice, MigraineTrackerQuestions1, MigraineTrackerQuestions2, MigraineTrackerQuestions3, StudyQuestions1, StudyQuestions2, StudyQuestions3, Help1, Help2, Help3, AskedForHeadacheStart, AskedForHeadacheStartYesterday, AskedForHeadacheStartTime, AskedForHeadacheEndTime, AskedForHeadacheTimeCorrectness, AskedForHeadacheChangeStartTime, AskedForHeadacheEndDate, InvalidHeadacheTime, AskedForContinuePartial, MaxRecognitionError, ServicePhoneNumber, ConfirmGoHome, ConfirmStop, ConfirmPause, ConfirmCancel, flow_stud,pain,taskContinue,selectCaregiver,Introduction,checkGoingOutStatetwo,CaregiverMessageRequestState"},{"id":"slots","type":"slots","z":"","slots":[]}]
Sample flow:
Answer group Intent node configuration
Select the Answers v2 KB in the group intent node.
Answers v2 Manager node configuration
Select the Answers v2 KB in this node. Next, choose the root type between Ancestor and Parent.
More information on Root types is here https://orbita.atlassian.net/wiki/spaces/OCS/pages/2087288839/Answers+v2+Manager+node#Answers-v2-Manager-node-properties
Intent node configuration
Choose the corresponding autogenerated Intent of the KB. (The system creates an autogenerated Intent associated with the KB).
The output will be available in this property - msg.payload.multiagent.voice.sayText
Please do the respective configurations for deploying the agents and test the bot by giving the Primary question as its utterance.