How Can We Help?
< All Topics
Print

Prompts

Prompts

<Prompts> are special intents in the workflows to keep the conversation engaging. They show a list of options to the user which can urge them to drive deeper into the conversation leading to a healthy experience.

If a response from bot, is not engaging the user by asking a follow up question, then system will fire prompts after some delay if the user is silent/inactive. If the user interacts back before this duration, the prompts won’t show up.

Prompts can be defined at Intent level or at root level, system will pick the closest prompt to the intent matched.

Coverage

  • Examples
  • How to build prompts
  • How to change prompts delay
  • How to disable prompts
  • Prompts toggle effect

Examples

				
					</Project>
  ...
  <Prompts showcards="true">
    <Message>Please select one of the options to know more, or ask your own question.</Message>
    <Prompt name="Project Details">
      <Click>Project Details</Click>
    </Prompt>
    <Prompt name="Current Price">
      <Click>Current Price</Click>
    </Prompt>
    <Prompt name="Location">
      <Click>Location</Click>
    </Prompt>
    <Prompt name="Floor Plans">
      <Click>Floor Plans</Click>
    </Prompt>
    <Prompt name="Book a Site Visit">
      <Click>Book a Site Visit</Click>
    </Prompt>
    <Prompt name="Developer Profile">
      <Click>Developer Profile</Click>
    </Prompt>
    <Prompt name="Request Human Agent">
      <Click>Request Human Agent</Click>
    </Prompt>
  </Prompts>
<Project>

				
			
				
					<DeveloperProfile>
  ...
  <Prompts showcards="true">
    <Message>Please select one of the options to know more, or ask your own question.</Message>
    <Prompt name="Developer Profile">
      <Click>Developer Profile</Click>
    </Prompt>
    <Prompt name="Completed Projects">
      <Click>Completed Projects</Click>
    </Prompt>
    <Prompt name="Ongoing Projects">
      <Click>Ongoing Projects</Click>
    </Prompt>
  </Prompts>
</DeveloperProfile>

				
			

How to build prompts

				
					  <Prompts showcards="true">
    <Message>Please select one of the options to know more, or ask your own question.</Message>
...
    <Prompt name="Developer Profile">
      <Click>Developer Profile</Click>
    </Prompt>

				
			
  • Create a <Prompts> tag,
  • Add showcards=”true” attribute
  • Add Message child tag to describe about the options.,
  • For each option, add a prompt child tag
    • Add Name attribute: Text visible to the user on button
    • Add Click Tag : Text sent back as reply from user on clicking the button, this text is used to match against intent, mostly it will be same as name attribute.
  • Suggestions
    • Keep the name small as some channels have limit on button’s text size preferably under 20 characters.
    • Keep up-to 3 options, many channels don’t allow adding more as most of the chat users are in mobile devices and it clutters view.

Settings

Prompt Timing

Under Bot Settings, you can set PromptsDelayInMs to configure the delay before prompts show up. Default is 5 secs. This setting can be changed to increase/decrease the time gap after which prompts appear.

				
					<PromptsDelayInMs tip="Delay to show prompts in msec">
        <Message>5000</Message>
      </PromptsDelayInMs>

				
			

Disable Prompt

If we do not want certain intent’s response to trigger prompts, we can disable it by setting attribute noPrompt=”true” as in example below.

				
					<Thank alias="thankyou,thx" noPrompt="true">
        <Message>You are welcome.</Message>
        <Message>For more information, please email us at #s.owner.email or call at #s.owner.mobile. You can also share your Email id/Contact No. and we would be glad to assist you.</Message>
      </Thank>
				
			

The property’s value is also inherited from parent intents, so if a parent intent has set/unset noPrompt then all its child intents will follow noPrompt.

				
					<Project noPrompt="true">
  <Client></Client>
  <DeveloperProfile></DeveloperProfile>
  <Location></Location>
</Project>
				
			

All the intents in <Project> tag family have noPrompt set, they wont trigger prompts.

If we want Location to trigger prompts, we can modify above as following

				
					<Project noPrompt="true">
  <Client></Client>
  <DeveloperProfile></DeveloperProfile>
  <Location noPrompt="false"></Location>
</Project>
				
			

Ideally if you want to disable prompts from entire workflow, just set noPrompt at root intent, <Intent> tag.

				
					<Intents noPrompt="true">
				
			

Additional Info

Prompts Toggle

  • System will internally toggle the prompts if its repeats.
  • This part cant be controlled/disabled.
  • The ideal workaround would be to duplicate prompts.
Table of Contents
logo-finwh

Ready to See Kenyt.AI Agents in Action?

Book a personalised demo today