For the Code Actions, you can now add function arguments to make them reusable without rewriting the Code Action. You can implement multiple Arguments for a single Cloud Code Action by adding the parameters and values for the same Code Action.
Rules for adding the arguments:
Perform the following steps to add multiple arguments for the Code Action:
Example:
Suppose the bot calculates the lead score to indicate the buying prospects during a conversation with the users. You can increase the score when they show interest in the product. When they explicitly say they want to buy the product, you can increase it with more points than just 1.
Previously, if you wanted to increase the lead score by 10 instead of 5, you would have to copy the entire code action and change the number. Using arguments within Code Action, you can add multiple arguments to increase the lead score based on the prospects.
When you configure a Code Action argument it will be available on execution inside the code action within the payload.args object.
For the Code Actions, you can now add function arguments to make them reusable without rewriting the Code Action. You can implement multiple Arguments for a single Cloud Code Action by adding the parameters and values for the same Code Action.
Rules for adding the arguments:
Perform the following steps to add multiple arguments for the Code Action:
Example:
Suppose the bot calculates the lead score to indicate the buying prospects during a conversation with the users. You can increase the score when they show interest in the product. When they explicitly say they want to buy the product, you can increase it with more points than just 1.
Previously, if you wanted to increase the lead score by 10 instead of 5, you would have to copy the entire code action and change the number. Using arguments within Code Action, you can add multiple arguments to increase the lead score based on the prospects.
When you configure a Code Action argument it will be available on execution inside the code action within the payload.args object.
For the Code Actions, you can now add function arguments to make them reusable without rewriting the Code Action. You can implement multiple Arguments for a single Cloud Code Action by adding the parameters and values for the same Code Action.
Rules for adding the arguments:
Perform the following steps to add multiple arguments for the Code Action:
Example:
Suppose the bot calculates the lead score to indicate the buying prospects during a conversation with the users. You can increase the score when they show interest in the product. When they explicitly say they want to buy the product, you can increase it with more points than just 1.
Previously, if you wanted to increase the lead score by 10 instead of 5, you would have to copy the entire code action and change the number. Using arguments within Code Action, you can add multiple arguments to increase the lead score based on the prospects.
When you configure a Code Action argument it will be available on execution inside the code action within the payload.args object.