Get Ticket Id from Submit Ticket Action at the ChatBot

jgranados
Member

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 Upvotes
2 Replies 2
dennisedson
Community Manager

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

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
jgranados
Member

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 Upvotes