Skip to main content
Hello Community.

 

recently i'm trying to build chat bot feature, and i have a problem for getting values in the "pre-chat form" and place that value into a custom filed.

 

einstein bot - get values from pre-chat

 

from what i read in google, i had to create a workaround to achieve this. and here's what i done :

 

First

 

i copied the "embedded code sniplet" from here (refer to pic below) , and pasted it on visualforce pages.

 

embedded code

 

from visual force page, i add some code that i found on salesforce guide. and when i'm preview the page and connect to my live agent user, it WORKS perfectly, the values from 'pre-chat' form has been copied to a custom field.

 

and here's the thing, how can i connect my new visualforce page into the chat button ?

 

cause when i'm trying to setup my chat button and preview it from "bot builder', instead connect to my visualforce pages it still connect to standard 'pre-chat form' which means the values still not copied to the custom fields.

 

i've already done this ;

 

    - setting chat button

 

    - create a force.com sites

 

but it still cannot connected, am i missing something in here ?

 

here's the settings for chat button, sites

 

sites settings

 

chat button settings

 

 
2 answers
  1. Apr 22, 2021, 6:14 AM
    Hi Kermit,

     

    thank you for your reply, i'll try to post my question there too,

     

    Regards.
0/9000