Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This document will help in implementing Answers v2 in Experience Designer.

Prerequisites

Experience Manager

  1. Log into the Experience manager in Experience Manager> Develop> Experience Developer.

  2. 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.

  • Root Type> Ancestor - This is used to recognize the hierarchy that is applied in the KB questions. When choosing this, the acceptable inputs for the chatbot will be the Primary question and the question variation of the root question only. Further, the label, the child Primary question, and the question variations won't trigger the expected answers.
    Once the Ancestor Primary question is asked, next the user is free to give the child Primary question or the child question variations within the Ancestor root question, as the input to the bot.

  • Root Type> Parent - This can be selected if the hierarchy need not be considered. Every primary question, its question variation, and the labels can be used as utterances to get the expected answers in the bot.

Intent node configuration

  • Choose the respective autogenerated Intent for 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.

Related Articles

  • No labels