Add Knowledge Advanced SmartAssistant

You must add the mobile ask a question (ask.php) page to implement the Knowledge Advanced version of SmartAssistant. Users can submit a question to a support agent from the Ask a Question page. Users can also see knowledge articles as well as community discussions that match the user-entered text before submitting the question.

You implement mobile SmartAssistant by replacing the mobile ask a question page in your current instance with the reference implementation mobile ask a question page.
  1. Copy the reference implementation mobile ask a question page from here:

    /cp/core/framework/views/pages/okcs/mobile/ask.ph
  2. Place it here:

    /cp/customer/development/views/pages/mobile/

Here’s an example of the reference implementation mobile ask a question (ask.php) page:

<rn:meta title="#rn:msg:ASK_QUESTION_HDG#" template="okcs_mobile.php" clickstream="incident_create"/>
<div class="rn_Hero">
   <div class="rn_HeroInner">
      <div class="rn_HeroCopy">
         <h1>#rn:msg:SUBMIT_QUESTION_OUR_SUPPORT_TEAM_CMD#</h1>
         <p>#rn:msg:OUR_DEDICATED_RESPOND_WITHIN_48_HOURS_MSG#</p>
      </div>
   </div>
</div>

<div class="rn_PageContent rn_AskQuestion rn_Container">
   <form id="rn_QuestionSubmit" method="post" action="/ci/ajaxRequest/sendForm">
      <div id="rn_ErrorLocation">/div>
      <rn:condition logged_in="false">
      <rn:widget path="input/FormInput" name="Contact.Emails.PRIMARY.Address" required="true" initial_focus="true" label_input="#rn:msg:EMAIL_ADDR_LBL#"/>
      <rn:widget path="input/FormInput" name="Incident.Subject" required="true" label_input="#rn:msg:SUBJECT_LBL#"/>
      </rn:condition>
      <rn:condition logged_in="true">
      <rn:widget path="input/FormInput" name="Incident.Subject" required="true" initial_focus="true" label_input="#rn:msg:SUBJECT_LBL#"/>
      </rn:condition>
      <rn:widget path="input/FormInput" name="Incident.Threads" required="true" label_input="#rn:msg:QUESTION_LBL#"/>
      <rn:widget path="input/FileAttachmentUpload"/>
      <rn:widget path="input/MobileProductCategoryInput" name="Incident.Product"/>
      <rn:widget path="input/MobileProductCategoryInput" name="Incident.Category"/>
      <rn:widget path="input/FormSubmit" label_button="#rn:msg:SUBMIT_YOUR_QUESTION_CMD#" on_success_url="/app/ask_confirm" error_location="rn_ErrorLocation"/>
      <rn:condition content_viewed="2" searches_done="1">
      <rn:condition_else/>
      <rn:widget path="okcs/OkcsSmartAssistant" accesskeys_enabled="false" view_type="inline"/>
      </rn:condition>
   </form>
</div>