Legacy Dev Forum Posts

 View Only

Sign Up

How can i get these customer input from the prechat form to my inbound chat flow with the help of get participant data?

  • 1.  How can i get these customer input from the prechat form to my inbound chat flow with the help of get participant data?

    Posted 06-05-2025 19:10

    Sreejith_K | 2020-05-28 09:13:03 UTC | #1

    Hi Team,

    I know that there is no option to collect input from the customer in an inbound chat flow.

    What i can do is just to make customer fill some information in the custom field or new attribute on the prechat form.

    How can i get these customer input from the prechat form to my inbound chat flow with the help of get participant data?


    Jerome.Saint-Marc | 2020-05-28 10:00:18 UTC | #2

    Hello,

    Let's say that you have defined a custom input field, in the Widgets v2 Chat registration form (assuming you are referring to Widgets v2), with "name" attribute equal to "myCustomQuestion". In your Architect Inbound Chat flow, you would use a "Get Participant Data" action with Attribute Name set to context.myCustomQuestion

    Input fields sent from Widgets will be made available in the Conversation Participant Data with a prefix of "context." + the name of your input (ex: context.subject).

    Regards,


    Sreejith_K | 2020-05-28 10:20:58 UTC | #3

    Can we have 15mins zoom session now?


    Jerome.Saint-Marc | 2020-05-28 10:26:49 UTC | #4

    Sorry - no - I am not available for a zoom session.

    What is your question?


    Sreejith_K | 2020-05-28 10:34:48 UTC | #5

    My plan is to give an option called "Question" to the customer in the prechat form. so that the customer enter A, B or C.

    i need to know which of the above names ex: A,B,C the customer enters.

    If i get the data from prechat form to the inbound chat, i will create a switch or any logical decision and i can send the responses based on the customer input (A,B or C)


    Jerome.Saint-Marc | 2020-05-28 10:49:09 UTC | #6

    You name your custom field "Question". As it appears in the code you have generated -> Chat Code, it is declared like this:

    { "id": "cxwebchatform_question", "name": "Question", "maxlength": "100", "placeholder": "Custom data placeholder", "label": "Question", "value": "" }

    So in your inbound chat flow, as I explained above, you take the "name" of that field and add a "context." prefix. You would then retrieve the value using a "Get Participant Data" action with Attribute name set to context.Question


    Jerome.Saint-Marc | 2020-05-28 10:57:46 UTC | #7

    "name" corresponds to the name you want to give to your attribute. "label" corresponds to the text you want to display for that attribute in the Chat Registration form.

    See here for more details: https://developer.mypurecloud.com/api/webchat/widget-version2.html#advanced_configuration And here: https://all.docs.genesys.com/WID/Current/SDK/WebChat-combined#Customizable_chat_registration_form


    Sreejith_K | 2020-05-28 10:58:10 UTC | #8

    Please have a look at the below screenshots and correct me if i am wrong


    Jerome.Saint-Marc | 2020-05-28 10:58:35 UTC | #9

    that's correct. Just try it.


    Sreejith_K | 2020-05-28 10:58:44 UTC | #10


    Sreejith_K | 2020-05-28 10:59:19 UTC | #11


    Sreejith_K | 2020-05-28 11:01:21 UTC | #12

    Below are my test results

    I am giving " "


    Sreejith_K | 2020-05-28 11:02:32 UTC | #13

    No it is not working...

    It is directly taking to the last send response.


    Sreejith_K | 2020-05-28 11:07:50 UTC | #14

    As per the plan it should send a response "A"

    But not working, please help me fix this issue


    Jerome.Saint-Marc | 2020-05-28 11:14:10 UTC | #15

    You are not showing the chat transcript before the "Hi ...". So I don't see what you have before and if it works or not.


    Sreejith_K | 2020-05-28 11:16:35 UTC | #16

    Please the switch details


    Sreejith_K | 2020-05-28 11:17:43 UTC | #17

    For each case , i am sending resonse to the customer in the below format


    Jerome.Saint-Marc | 2020-05-28 11:30:30 UTC | #18

    As I said above, send me a screenshot of your LiveChat transcript - before the Hi message (scrolling up)... As you did here - but scrolling up - https://developer.mypurecloud.com/forum/t/how-can-i-get-these-customer-input-from-the-prechat-form-to-my-inbound-chat-flow-with-the-help-of-get-participant-data/7901/13


    system | 2020-06-28 11:30:30 UTC | #19

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 7901