Digital Assistant and Mobile

Get Involved. Join the Conversation.


    Sikaar Keita
    How to set a flow variable from a custom component
    Topic posted August 2, 2018 by Sikaar KeitaGreen Ribbon: 100+ Points, tagged Bots, Conversational AI 
    227 Views, 2 Comments
    How to set a flow variable from a custom component
    Trying to set the value of a variable from a custom component and use this value later in the bot flow


    I would like a custom component to populate a flow variable but can't succeed .

    The custom component is properly called and the flow works fine, but the variable is not populated , what in my usage of conversation.variable() is wrong as i thought it would populate the variable responseVar1 properly ?

    NB : I am an Oracle Employee Running IBCS on a VM



    Code Snippet:



    • Marcelo Jabali

      As an Oracle employee you should use the internal mailing lists for help.

      It looks like you are setting the value to responseVar in your custom component but trying to print responseVar1 in the printData state. 

    • Frank Nimphius

      This here is wrong;


          component: "DataRetrieval"
            responseVar: "${responseVar1}


      Should be 

          component: "DataRetrieval"
            responseVar: "responseVar1"