Develop > Presentation layer > Customize marketing > Work with Product Advisor > Create a metaphor XML input file > Prepare a Guided Sell metaphor


Create a question and answer tree

To create a question and answer tree, create a question, and then add a selection of possible answers. For each answer, you can create one follow-up question. Repeat the process until to provide the customer with links to products whose features satisfy the selected answers. At this point, the question and answer tree is complete.

To create the question and answer tree, complete the following steps.


Procedure

  1. Edit the XML input file

  2. Insert a <qnaTree> element immediately after the <metaphorLink> element. The XML code will look like the following: <qnatree></qnatree>

  3. To create the first question:

    1. Insert a <rootQuestion> element between the qnaTree begin and end tags.

    2. Insert a conceptInfo element between the rootQuestion begin and end tags. The XML code will look like the following:

      <qnatree>   
      <rootQuestion>        
      <conceptInfo>        
      </conceptInfo>    
      </rootQuestion>
      </qnatree>
      

    3. You can create additional <conceptInfo> elements if required to support multiple languages. Repeat step 3b, but insert the new <conceptInfo> element after the original <conceptInfo> element.

  4. Create answers for the root question of the metaphor:

    1. Insert the following elements after the <rootQuestion> element:

      <answer>    
      <orderSeq></orderSeq>    
      <conceptInfo></conceptInfo> 
         
      <constraint></constraint>   
      <metaphorLink></metaphorLink>
      </answer>
      

    2. Enter a number between the <orderSeq> begin and end tags. This number corresponds to the sequence in which the answers are displayed to the customer. When you have multiple answers for a question, they are listed for the customer, with the answer with the lowest sequence number being listed first. Multiple answers for the same question must each have unique orderSeq values.

    3. Enter the conceptInfo information.

    4. Enter the constraint information.

    5. Enter the metaphorLink element. Note: If no metaphorLink element is added, and no follow-up question exists, then the answer will link to the default link specified for the Guided Sell metaphor. The default link was defined in the create a default link for the metaphor online help file. For more information about linking, refer to create a link for an answer.

    6. To add another answer for the same question, repeat steps 4a to 4e, but insert the new answer element after the original answer element. You can create as many answers as you want.

  5. Create a follow-up question for each answer:

    1. Insert a <question> element between the answer begin and end tags, but after the constraint end tag.

    2. Insert a conceptInfo element between the question begin and end tags.

    3. You can create additional <conceptInfo> elements if required. Repeat step 5b, but insert the new <conceptInfo> element after the original <conceptInfo> element.

  6. Repeat steps 4 and 5 until you have completed the question and answer tree.


Related concepts

Question and answer tree

Guided Sell metaphor


Related tasks

Prepare a Guided Sell metaphor

Edit the question and answer tree

Create a link for an answer


+

Search Tips   |   Advanced Search