<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Differentiate between a user typing and Postback button statements in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456393#M4665381</link>
    <description>&lt;P&gt;Hi Daniel, if there's nothing in the available structures in Memory that determines whether a button was clicked, the only possible - but not perfect - solution could be to put all the previous buttons' postback-value into an array and on every statement coming in checking whether nlp.source is found identically in that array. but there's two problems with that:&lt;/P&gt;&lt;P&gt;- the user could have typed exactly the same string as one of the postback-values&lt;/P&gt;&lt;P&gt;- (even worse:) buttons do not disappear, so the user could scroll up and push a button from a message from three days ago (teams!), and you probably would not want to build an array with all the postback-values ever offered.&lt;/P&gt;&lt;P&gt;i would agree with Giacomo, it would be great if we could access information about events, like which button in which message was clicked and so on...&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;matthias&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 13:52:55 GMT</pubDate>
    <dc:creator>mberghoefer04</dc:creator>
    <dc:date>2021-06-09T13:52:55Z</dc:date>
    <item>
      <title>Differentiate between a user typing and Postback button statements</title>
      <link>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaq-p/12456390</link>
      <description>&lt;P&gt;Dear Colleagues, I have a SAP Conversational AI Skill-based bot, and I am trying to create a different Chatbot action between when&lt;/P&gt;
  &lt;P&gt;- the intent is triggered because the user typed something (e.g. I want product documents about product X). &lt;/P&gt;
  &lt;P&gt;- the intent is triggered because the user clicked on a Postback button that activated the intent (e.g. click on the button "product documents product X"). &lt;/P&gt;
  &lt;P&gt;I cannot find anything in the JSON code that differentiates these 2 behaviors to be used in the skill conditions: would anyone know of a way to do this? (just as a clarification: skill-trigger buttons are not an available option in this case). &lt;/P&gt;
  &lt;P&gt;Thank you in advance for any help you can give us&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 12:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaq-p/12456390</guid>
      <dc:creator>giacomo_gasperini</dc:creator>
      <dc:date>2021-06-09T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between a user typing and Postback button statements</title>
      <link>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456391#M4665379</link>
      <description>&lt;P&gt;Just curious -- what different action are you taking?&lt;/P&gt;&lt;P&gt;As for the issue, I wouldn't expect any differentiation since essentially the user or the button are doing the same thing. I imagine you could try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the postback, add some code to the text that get's understood as an entity, and then you could check for that entity.&lt;/LI&gt;&lt;LI&gt;Add something to memory before offering the postback buttons (this I can see is not a really good solution in cases where the user ignores the button and simply types).&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 09 Jun 2021 13:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456391#M4665379</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2021-06-09T13:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between a user typing and Postback button statements</title>
      <link>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456392#M4665380</link>
      <description>&lt;P&gt;Hi Daniel, thank you for your questions: let's go in order&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What different action are you taking? A: if the user clicks the button I ask to type the question, but if the user has directly typed it, I would like to avoid asking to type it a second time (it's not the end of the world but if I can avoid it it's better form a conversation flow POV). &lt;/LI&gt;&lt;LI&gt;Add something to memory before offering the postback buttons. A: that's the problem, because the value is going to be in memory regardless of whether the user types or clicks. &lt;/LI&gt;&lt;LI&gt;On the postback, add some code to the text that get's understood as an entity. A: now this is very interesting (to be 100% precise, you mean code, not simple postback text correct?). How would you do this? &lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 09 Jun 2021 13:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456392#M4665380</guid>
      <dc:creator>giacomo_gasperini</dc:creator>
      <dc:date>2021-06-09T13:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between a user typing and Postback button statements</title>
      <link>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456393#M4665381</link>
      <description>&lt;P&gt;Hi Daniel, if there's nothing in the available structures in Memory that determines whether a button was clicked, the only possible - but not perfect - solution could be to put all the previous buttons' postback-value into an array and on every statement coming in checking whether nlp.source is found identically in that array. but there's two problems with that:&lt;/P&gt;&lt;P&gt;- the user could have typed exactly the same string as one of the postback-values&lt;/P&gt;&lt;P&gt;- (even worse:) buttons do not disappear, so the user could scroll up and push a button from a message from three days ago (teams!), and you probably would not want to build an array with all the postback-values ever offered.&lt;/P&gt;&lt;P&gt;i would agree with Giacomo, it would be great if we could access information about events, like which button in which message was clicked and so on...&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;matthias&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 13:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/differentiate-between-a-user-typing-and-postback-button-statements/qaa-p/12456393#M4665381</guid>
      <dc:creator>mberghoefer04</dc:creator>
      <dc:date>2021-06-09T13:52:55Z</dc:date>
    </item>
  </channel>
</rss>

