CMS Development

jgranados
Membro

Get Ticket Id from Submit Ticket Action at the ChatBot

Hello,

 

We are trying to customize the chatbot used by our client users to submit tickets.  We want to validate that the email entered by the user corresponds to a register user in a third party application.  We want the user to continue entering the ticket only if they are registered in that application. We created a custom code action to validate the user existence in the third party app and it is working fine, however HubSpot is always creating a new contact no matter if our custom script indicates that this user is not registered in the other app.  That is because the "Save to Property:Email" option is enabled at the "Get Email" action.  We tried to disable that feature and then manually creating and assigning the contact to the new ticket in another custom code action (after the Submit Ticket one) but the problem is that we are not getting the new ticket Id at the custom code action event parameter (so there is no way to relate the manually created contact with the new ticket).

 

Any thoughts about how to implement this scenario at the Chatbot?

 

Thanks!

0 Avaliação positiva
2 Respostas 2
jgranados
Membro

Get Ticket Id from Submit Ticket Action at the ChatBot

Hello,

 

We are trying to customize the chatbot used by our client users to submit tickets.  We want to validate that the email entered by the user corresponds to a register user in a third party application.  We want the user to continue entering the ticket only if they are registered in that application. We created a custom code action to validate the user existence in the third party app and it is working fine, however HubSpot is always creating a new contact no matter if our custom script indicates that this user is not registered in the other app.  That is because the "Save to Property:Email" option is enabled at the "Get Email" action.  We tried to disable that feature and then manually creating and assigning the contact to the new ticket in another custom code action (after the Submit Ticket one) but the problem is that we are not getting the new ticket Id at the custom code action event parameter (so there is no way to relate the manually created contact with the new ticket).

 

Any thoughts about how to implement this scenario at the Chatbot?

 

Thanks!

0 Avaliação positiva
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Get Ticket Id from Submit Ticket Action at the ChatBot

@Bryantworks , @jpsanchez either of you have some thoughts on this one?

0 Avaliação positiva