Article Quick Links
Overview
The Search & Replace action does exactly what its name suggests; it searches a body of text for a specific item, such as a term or a phrase, and replaces it with new text! Setup is quick and easy. You can define a static bit of text or use a variable to allow for text that can be updated depending on the scenario.
Configure the Search & Replace action
To configure the Search & Replace action, you need to provide the body of content that contains the text that is to be updated, the text to be updated, and optionally the replacement text for the text that is to be updated.
There are two mandatory fields to complete, plus one optional field.
Input Text | This is the content to search within for the the specified Search Text. |
Search Text | This is the text to search for within the Input Text. |
Replacement Text (optional) |
This is the text that replaces the Search Text within the Input Text. Note: Omit this option if you wish to simply remove the Search Text from the Input Text. |
Setup steps:
- Drag the Answer Utilities Block from the block drawer and drop it into the Answer workspace.
- Click the Select an action drop-down and select Search & Replace. The block updates with new fields relevant to this utility.
- Add a variable to the Input Text field containing the content to search within.
- Add the search term or phrase you wish to search for to the Search Text field. Use a variable to allow for updating the search text dynamically.
- [Optional] Click the Select Optional Inputs drop-down, then select Replacement Text.
- [Optional] Update the Replacement Text field with the content that is to replace the Search Text.
- Click the Select Optional Variables drop-down menu, then select Formatted Text.
- Select an existing variable for saving the updated Input Text, or create a new variable.
- Click the Fallback Answer drop-down menu, then select a fallback Answer to surface should an error occur.
- Click Save.
If you have questions or need help setting up the Search & Replace utility, reach out to your ACX Consultant.
More Answer Utilities
Have any questions? Contact your Ada team—or email us at help@ada.support.
Comments
0 comments