Recent searches


No recent searches

Ability to set the Trigger conditions for Chat when using the create or update trigger endpoints



Posted May 14, 2024

We have a use-case that requires dynamically changing trigger conditions to match our business logic. This means that the values used in the trigger condition change week to week, and it's currently unsustainable to update these values manually.

 

I've come to realize that we are unable to update said conditions using the trigger endpoints.

 

As a developer, it would be useful to be able to make changes to Chat trigger conditions using the API, so that the values can be changed dynamically, especially when dealing with hundreds of conditions.


0

2

2 comments

You're right, currently the create and update trigger endpoints don't support modifying the conditions themselves. However, there are a couple of workarounds you can consider while we explore adding this functionality in future updates:

Recreate Triggers: This might not be ideal for hundreds of triggers, but for a smaller number, you could write a script to programmatically delete and recreate triggers with the updated conditions.

Leverage Dynamic Data in Actions: While you can't directly update conditions, you can potentially achieve a similar outcome by using dynamic data within your trigger actions. For example, if a condition checks for a specific product ID, you could design your action to reference an external data source that holds the current product ID.

0


I understand the challenge you're facing, Vitor. Manually updating trigger conditions every week for hundreds of chats sounds tedious and error-prone check here.

The inability to set trigger conditions through the create or update trigger endpoints definitely limits dynamic control based on your business logic. An API functionality that allows you to define and update trigger conditions programmatically would be a valuable addition for your use case.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post