Add a Text Processing Tool
Updated
The Text Processing Tool in Sprinklr AI Agent simplifies API responses by converting them into readable formats. It works with the API Tool to handle large datasets and allows custom formatting to match user needs.
Key Benefits
Improved Readability: Converts complex API data into clear, easy-to-understand formats for quicker decision-making.
Customizable Formats: Allows tailoring of data presentation to fit specific business needs.
Faster, Accurate Responses: Speeds up processing and reduces errors, enhancing customer satisfaction.
Use Case: Customer Service Support with Text Processing Tool
In a customer service scenario, an agent needs to quickly interpret data from multiple APIs to assist a customer. Using the Text Processing Tool, the agent can receive API responses in a clear, structured format, making the data easy to understand and act upon.
For instance, when a customer inquires about their order status, the Text Processing Tool automatically formats the API response to present key information such as order details, shipping status, and expected delivery date. This streamlined presentation allows the agent to provide a faster, more accurate response, improving the overall customer experience by reducing response time and minimizing the risk of errors.
Steps to Configure Text Processing Tool
Follow the steps below to configure the Update Properties Tool in AI Agent Studio:
1. Access the Update Properties Tool
Navigate to AI Agent Studio from the Sprinklr Launchpad.
Select the AI Agent you want to configure.
Expand the Build section and open Tools.
Click + Add Tool and select Update Properties Tool from the list.
2. Define Basic Details
Name: Enter a unique name to identify the tool.
Description: Provide a brief description of the tool’s purpose.
3. Configure Setup Function
In the System Prompt field, define the rules of text processing you want to implement, that is, how you would like the API response to be processed, including the constraints and requirements. Example prompt: Extract the company name and location from the API response and convert it into a readable format, and display the information in bullet points with smileys.
Enter the Gen AI Output Adapter under User Text.
User Text: It is the variable in which the API Output is stored. Please write the variable in the format-$ {variable}.
Enter the Output Variable to store and display the output.
Enable the Chunking toggle if required.
Chunking:
Enables users to set the Chunk Size and Chunk Overlap Size when processing large outputs.
Chunk Size: Defines the size of each chunk in tokens (Min: 1024, Max: 4096).
Chunk Overlap Size: Specifies the number of overlapping tokens between chunks to prevent data loss (Min: 256, Max: 820).
Enable the Extract Fields toggle if required.
Extract Fields: Allows users to extract specific variables from data for reuse in other assets or workflows.
Function Name: Name assigned to the variable extraction function.
Function Description: Area to describe the data mapping logic using a clear and structured prompt.
Configure Fields: Define multiple fields by specifying the Name, Description, Type, whether the field is Required (Yes/No), and if it supports multiple values.
Click Save to add the Text Processing Tool to your AI Agent.