Skip to main content

Automation FAQs

note

Welcome message is supported only for web and app SDK and it is not supported for any of the Channels.

Nodes

Can I display a dynamic carousel without any actions in it?
Yes, you can use the carousel node from the message nodes section.

What types of workflows enable you to connect goals that run in the background while maintaining control within the dynamic chat node?
All the actions that are possible via Action nodes and Logic nodes can be set in Dynamic chat node to fetch data or perform an action. Additionally, you can also enable integrations and enable them in Dynamic chat node to send and recieve data from thrid-party applications.

How to display videos along with the AI-agent messages?
Use the Video node.

Why is the send OTP node not working?
Our out-of-the-box OTP verification is restricted only to the India region. If you’d like to avail of this functionality for international numbers, you will have to use external APIs.

Is it possible to skip triggering NLU for specific steps of a flow?
Yes, you can skip triggering NLU for specific flows using the Store comment node. ​

I have configured Hindi language but it is triggering fallback/different journey? What might be the reason?
In a flow, if you have selected "hi" (ISO code) for Hindi (button value), then it might be triggering another intent which you would have configured earlier ("hi" intent configured). To overcome this problem, set a variable, assign the variable value to Hindi language (hi), and then connect it to the Set language node. ​

I have an API response through which I’m getting a product image as a .png (few kb in size) Can I pass that into a Carousel/Image node to dynamically change the image?
Yes, use the following code snippet in the API parse function.
return new Promise(resolve => {
const imageVariable =
[{
"options": {
"caption": { "type": 'random' },
},
"url": "insertURL"
}]
resolve(imageVariable);
});

You can also do this in the carousal by creating your own custom/dynamic object (depending on the use case for which you select the node)​


The options in a dynamic Whatsapp list always leads to the fallback flow. How can we tweak this?

You can use the Condition node to redirect each option to the respective flow.

  1. Insert the condition node in your flow.
  2. Populate the node with button values.

  1. Connect each button to the flow that has to be executed if that button is clicked.


Can we increase the pagination size limit in Database Node?
You can increase the size limit upto 25, to increase beyond that, while setting the Pagination, instead of Text, use Variables with a static value. Variables let you increase the size limit upto 200.


I am able to create the same variable in Journey and Global but when I create the first global variable, I am unable to create the journey variable with same name
Variables should not have the same name. If they do, it will fetch the value for which it is assigned based on the assigned priorities from global to local. ​

How to retrieve multiple data from the database node?

Create function and extract the data from the variable that stored the DB response.

Write

let records = data.variables.db_response.records
console.log(records, "records")

Log the result and check the data. After this you can use the data based on your use case. ​


Why am I getting a fallback message even when WhatsApps list message is configured?
To avoid a fallback message, you must store the value of the WhatsApp list option in a variable and use an IF condition to compare the variable value to trigger the respective outcome (flow, text, and so on). ​

What is a transformation function in integration node?
The Parse API response field helps you fetch custom functions that will filter out specific data from the API response you recieve. For steps to use it, click here.​

What is the difference between Dynamic chat node and Prompt Executor node?
The Dynamic chat node drives the conversation around a particular goal whereas the Prompt Executor node just executes the given prompt and exits the flow. You can use Dynamic chat node if you want the AI-agent to have goal based conversations with the user, for example telling the user about different loans and convincing them to buy one. You can go with the Prompt Executor node if you want the AI-agent to just perform a certain action such as generating a recipe, writing a poem or performing a calculation.

Why does selecting a QR button go to the default fallback instead of the next step?
When users click QR (Quick Reply) buttons after 24 hours of conversation with the AI-agent, the context is lost. As a result, the button click triggers the fallback response instead of proceeding to the next step.


Documents

What does a good document format look like?
The following are some of the characteristics of a document that’ll be processed well during document cognition. It's recommended to follow these guidelines while pre-processing your document - ​ ​ * It does not have scanned pages and images, these will be skipped if present in the doc. ​ * At least 80% of the content is textual and well-formatted (e.g. Wikipedia articles) ​ * Remove content and index pages, appendix pages, etc. (we will add the logic to skip these automatically in coming releases) ​ * No bullet points before headings. Headings should have a larger font size and no spaces so that the parser can detect headings easily. ​ * Simple tabular data works better than complex or merged tabular data in the documents. ​

Why am I not getting the right result in the first suggestion?
Because document cognition is a probabilistic model that is “predicting” the relevance of a specific paragraph or page by looking at the input string. There is no guarantee that the first result will be the most relevant. The most relevant results are expected to come in the top 3 results.

Why am I getting the other documents in suggestions which don't have the answer?
Same answer as above. The model assigns individual scores to all the documents’ paragraph and use them to show the results, so if the confidence threshold is low it can still show irrelevant answers. You can fine-tune the confidence threshold using some test cases. ​

Why am I getting multiple occurrences of the same document in the results?
Because there might be multiple pages/occurrences of relevant content in the same document. In such cases, we rank them, based on the score and return only two occurrences in each document by default. If you want to see more or fewer occurrences within the same document, you can control it by passing the value of `results per document` in your search query. ​

Can the model read tabular data or image presents in the documents?
Tables can be indexed by enabling the Parse table option while uploading, Simpler table works better than complex/merged tables. Images/diagrams will be skipped. ​

Why am I not able to access a document link, from a conversation I had yesterday? Can I change this dynamic URL to some fixed redirection URL?
Currently, we have restricted the life of each SAS link to an hour for security reasons. This can be removed/updated as per the client's request. You can generate a new link by asking the same query again in the AI-agent. You can also change this redirection URL to a fixed URL using the document properties option. ​ ![](https://camo.githubusercontent.com/f1d4e073603851fadf4777a41e25d88d9412a1856666b67f8f0738b5b5d1daea/68747470733a2f2f63646e2e79656c6c6f776d657373656e6765722e636f6d2f524c333558336d436f7a5038313631333534343436393233362e706e67) ​

How do I ensure that the AI-agent shows only relevant documents?
There is no specific logic added to detect irrelevance right now. However, we do provide a relevance score with each search result that the AI-agent developer can use. The model returns all documents which contain even a few keywords in the query in decreasing order of relevance. The AI-agent developer can choose to show only Top N (e.g. Top 5) or Top 25% of the results based on relevance score. ​​

Can the Doc cog work if the documents are stored in a different system?
Doc cog has in-build integrations for Sharepoint, S3, URLs, and KBs (Salesforce, Service-now, Confluence). Any other KB can also be integrated which has APIs to access the articles/documents. ​​

Docs QNAs are not being generated, do I need it for working of doc cog? or can I edit the response of doc cog results?
Doc cog search will work fine without the QNAs. If the upload docs are showing completed status, you can just enable doc cog fallback or add Action Node and start using it. QNA's are only required for editing the answers and adding them to the FAQs section. ​​

Is permission-based Doc cog results possible so that only certain groups of people can search in a certain list of Docs / External KBs?
Yes, It is possible, User can add tags to the documents and pass the tag value as a variable in the doc cog action node while searching. ​

If a single document has different answers/responses wrt a user profile like CEO, HR, SDE etc, Can we filter and show just the answers related to the User Profile?
If the results are on a different page, page logic can be used to filter the results ​ if answers are in a tabular structure, you can try adding the role of the user in the query itself, like

<query>: SDE”, eg. Annual leave entitlement?, SDE"


Why my documents are taking so long for indexing, is it stuck?
Doc cog uses queue base indexing flow which has a common queue among all the AI-agents. A pending/queued status represents doc is still in the queue and waiting for indexing while the indexing status represents the doc is being indexed. ​

Is there any limit on documents uploading?
Yes, for a Tier 0 (Free Tier) AI-agent there is a limit of a max of 50 total pages or a max of 5 documents and Tier 1 AI-agent has a max 200 documents limit. Tiers other than T0 can have max of 500 pages per document. ​

Can I index my articles present on ServiceNow / Confluence / Salesforce etc.?
Yes, using Doc cog External KB integration it is possible to index the articles using the APIs. ​

Why my AI-agent is showing Journey Suggestions (Did you mean) instead of Doc cog results in fallback?
A AI-agent has a specific priority order of actions in the fallback case. ​ Order: Journey -> FAQs -> Journey suggestion -> Doc cog -> Other fallback. ​ So if the Journey suggestions are enabled and with good suggestion confidence, Journey suggestion will be triggered due to the priority order. You can try disabling the suggestion or increasing the confidence threshold of the suggestion. ​

Can I change the layout of the doc cog results cards?
Yes, but the default layout is recommended which helps us in analytics, improves accuracy and provides a better user experience. ​ A layout that can be changed: Change vertical to horizontal cards, change the display name, remove tags, and remove the preview button. ​

How do I suggest documents from a category?

You cannot. If you have configured the document search node, you will receive answers from it, otherwise, it suggests alternatives. If neither option is available, it resorts to the fallback.



Functions & APIs

How to get the exact status code as our API Event Data explorer while getting API responses in a journey?

Create a function after the API call and apply the below code snippet.

ymLib.args.apiResponse.statusCode

Can I fetch data directly from array or object variables within a function?

Yes, ensure that you declare the array or object variable before attempting to capture or fetch data from it within the function. Here's a sample of valid data fetching:

let req = data.variables.getReq; // Assigning value from array variable
let jobs = data.variables.getJobs; // Assigning value from object variable

let jobsData = jobs.d; // Fetching key from object
let reqData = req.d.results; // Fetching key from array
How do we access values from an object data type in a Function?

It's essential to declare the variable according to its datatype before performing calculations. For instance, if it's an object variable, declare the object variable first and then capture the required data. Here's a simple example:

You can access the values as follows:

return new Promise(resolve => {
// Your logic goes here
let userInput = data.variables.dateList;
console.log(userInput);
console.log(userInput.value.date);

let selectedDate = userInput.value.date;
resolve(selectedDate);
});

Note: If you want to capture the date, store the response in a variable of type number. Click here for more details.

How can I extract specific date values from a function that returns a date?

To extract specific date values, you can use the following syntax:

  • Day: data.variables.{FunctionName}.value.day
  • Month: data.variables.{FunctionName}.value.month
  • Year: data.variables.{FunctionName}.value.year
  • Date: data.variables.{FunctionName}.value.date

Journey(flow)

Can I retrieve journey data outside the AI-agent?
The accessibility of journey data depends on the type of variable:

Journey Variables: These variables are limited to the flow in which they are created and can only be accessed within that specific flow.

Global Variables: Unlike journey variables, global variables are accessible across all flows within your AI-agent, allowing for broader usage and integration of journey data.

User Properties: User properties are user variables that can be accessed in Automation, Engage, and User 360.

You can use the appropriate variable type based on your specific use case.

How to open a website in a AI-agent conversation?
Add a text node to the flow and paste your website URL in it. ​

How do I link one flow to another flow for a AI-agent?
Use Execute Flow to link another flow to a AI-agent. ​

How to export/clone a journey to another AI-agent?
Export the template of that journey and import it to the AI-agent of your preference.

Will regex entity trigger a flow?
What does it mean when the AI-agent is in a critical status? Does it affect the AI-agent's operations or performance?
When the AI-agent is in a critical status, it means that the health check configured for the AI-agent is failing. However, this does not have any impact on the AI-agent's operations or performance. You can execute the health check and update the test case to bring the status back to normal. ​

KB

How can we tailor the responses retrieved from the knowledge base? For instance, by restricting the response size, presenting answers in sequential steps when appropriate, and interpreting tables and flowcharts.

You can customize KB responses by following the steps mentioned here. To present the steps in sequential manner, set the AI-agent's tone to Instruction based. KB interprets data only from websites and not from tables and flowcharts directly. However, you can provide the website URL containing the tables, flowcharts, and supporting data.


How to use knowledge base for pdf?
To upload PDFs to your Knowledge Base, follow the steps mentioned here.

While using Doc cog (document search) the AI-agent response generates irrelevent links, how to resolve it?
Increase the Document search threshold value to improve the accuracy of the links generated.

Why do search results differ between the app platform and the cloud?
If the knowledge base is the same, search results may vary due to differences in the search algorithms or indexing processes between the platforms.

Does our platform support multilingual websites?
No, currently multilingual websites are not supported as a live feature. Only English and Bahasa languages are supported.

Why does the AI-agent display incomplete information from the website?
This could happen if you edit or rephrase the query to get the context of the conversation, which can sometimes result in incomplete information being displayed by the AI-agent.

Why can't I configure SharePoint even though my credentials are correct?
When configuring SharePoint folders, ensure that you remove "https:" from the target host.

How do I handle uploaded documents where the company is referred to as a third party (for example, "them" and "they provide")?
To avoid confusion, use the model response type set to "formal/short answer" to ensure clarity.

Why doesn't the URL "xyz/abc.com" work when the domain is listed as "ABC Network - ABC.com"?
The issue is that the domain has been configured to retrieve answers only from the specified website ("ABC.com"). Ensure that the site URL passed under the document cog node matches the configured domain.

How to avoid irrelevant documents being fetched for the entered query?
To prevent this issue, adjust the document search threshold confidence level. By setting an appropriate threshold, irrelevant documents can be filtered out more effectively, enhancing the relevance of the search results.
Note: The model has inherent accuracy limitations, so the results may not be 100% accurate all the time.

How to enable summarized results and summarized answers for the Knowledge Base (KB)?
To enable summarized results and summarized answers for the Knowledge Base (KB), follow these steps:
1.Go to Automation > Build > Conversation settings.
drawing
2.Under Document Search, enable Summarized results and Summarized links. drawing