How to export all the bot responses defined inside the composer - bot-framework-composer

As the title says, I would like to be able to export in text file or csv all the bot responses I defined inside the composer. How would I go about doing that, without manually copy pasting it? Also I want explicitly the text messages and not the Activities, eg:

Related

Is it possible to store handlebars templates in variables, and not in files?

There is a code written in typescript and node.js, the main purpose of it is sending emails. There are email text templates written in handlebars templating language, they are in a folder named "templates" together with the rest of the code.
I want to develop this by let the users edit the email templates. What was in the .handlebars files, now those texts are in the database (users can write it).
Until now, if a trigger happend and the code wanted to send an email, it used something.handlebars as an email text template. But now, the goal would be that the file named something.handlebars wouldn't exist anymore, and I would send what is stored in a given variable.
That variable is filled from the database (this is done), it is a string written in handlebars language. It would be important that handlebars should "process" the content of the variable before sending the email, because the text contains variable substitutions, formatting, etc...
I am not sure if this is possible with handlebars. When I configure handlebars in the code, I have to define a folder which contains the handlebars files, which tells me that I should have handlebars files, not variables which contains text written in handlebars syntax.
Is it possible with handlebars?
If so, how should I configure handlebars, and how could I do this?
If not, could you suggest me another email templating system, which is able to do these things (I mean, load template text from a variable, not a file)?
The current setup is working correctly (using .handlebars files), it sends the emails correctly. But as I see the config of the handlebars system, I guess that it is not possible to load the template text from a variable.
You're not sharing any code, so I have to guess at your implementation.
However, according to the documentation of handlebars.
You should be able to compile a template from a variable?

how to "save" a file/folder in the Node.js app "Universal GUI"

I can't figure out how to add a "save file/folder" input to Universal GUI.
I need to be able to pick a location to pass as a file or folder
to the cli program without the file/folder in question existing already.
Selecting a pre-existing file to pass to the cli command is easy, just use the generic file upload entry.
And Universal GUI already has a "select folder" entry.
Both options require selecting one that already exists.
So all I need is to be able to select a file and/or folder that doesn't exist in a "save" form.
I've never found an alternative to NW.js that doesn't require manually setting up the Node.js launcher.
So that's what I run the app I made in/for Universal GUI.
The folder browser is designed to allow you to select existing folders or create new ones. File select will also allow you to create new files.
It sounds like what you want is to use the folder selector, so the user can select the folder (or create it, then select it) as their output directory. Then give them an input text field to type a file name into. Then you just combine all of that together as an argument for the CLI.
<cmd executable="myexe">
<arg>--save "((outputDirectory))\((fileName)).txt"</arg>
</cmd>
<!--
What would be sent to the command line:
myexe --save "C:\Users\Bob\Desktop\SomeFolder\MyFile.txt"
-->

Code for API in smartsheets on demand batch export

I'm fairly noob on the whole RESTful/SOAP arena, I've been looking around for samples using node.js to trigger a Rest or SOAP API to be able to export a batch of smartsheets to excel
I already got a sample for google drive export but its not quite what I need
I'm not sure how to search for code or samples using microsoft excel export and then batch from a list of files or even a smartsheets workspace
I expect a folder with all the exported excel files in the server at a specified location. I'm also thinking of how this could be done using node-red instead as an alternative, what is the suggested path of least resistance.
You can do a GET Sheet request via the Node.js SDK and have the results returned as an Excel file:
https://smartsheet-platform.github.io/api-docs/?javascript#get-sheet-as-excel-pdf-csv
Note, this requires the Sheet ID and is done as a request for each sheet. There isn't a method to request a batch export of a collection of sheets via the API. You would need to gather a list of Sheet IDs and loop through it to request each one as an Excel file while storing them in your desired location.
You could do a GET Workspace request to get a list of all of the sheets in a workspace for creating your list of Sheet IDs. You could use the List Sheets request to get a list of all of the sheets you have access to as well. Both of those requests are supported by the Node.js SDK.

Creating tables within ckeditor from uploaded files

Would it be possible to create and populate tables within ckeditor from uploaded files?
A user would choose a file from their machine in any format such as word, excel etc and it could display a formatted table in the editor....
It is pretty clear that one can create a table in CKEditor. Also, it is possible to add a table automatically. Now, if you want to automatically add a table based upon the content of an uploaded file, then:
create a form where the file can be uploaded
implement the feature with which one can upload the file
make sure you know where your files are, either using a database or a deterministic algorithm
implement a server-side functionality which prepares the content (table) data
use the prepared data as input at client-side

Kofax Capture custom module(panel) for annotation

I am trying to figure out what would be the best way(if possible) to enable Kofax Capture users to annotate tiff images while processing them (preferably in Validation step in Kofax Capture/KTM. I do have a Atalasoft DotImage library that can annotate pdf and tif files, so I have to figure out how to develop this custom module/panel and plug it in validation screen so users can use it to burn annotations into images in the batch.
Thanks,
Goran
First: Only KC validation can use a custom panel, and if you are already or intending to use KTM Validation, you won't want to switch to KC Validation.
KTM interactive modules have functionality called sticky notes. This built in functionality lets a user add a note to any location of an image. These notes are then accessible via the document object in script (pXDoc.Annotations). These do not burn into the image out of the box, however you could let the users use this interface then use the Batch_Close event to loop through documents and access the notes they have created. Make sure you check the close mode so you don't take action when the batch suspends or closes in error.
At that point you might go different routes:
Modify the images directly from Validation's Batch_Close event - KTM script can only see COM visible assemblies and I believe Atalasoft is not. So you will need to create your own COM visible assembly which takes coordinates and text from the note. Then call this in Batch_Close to annotate your image.
Store the text and coordinates to modify the image later - You might to use Batch_Close just to get the data out of KTM and into either KC Custom Storage Strings or an external file alongside the images. Then you would write a KC custom module to use that data to modify the image.
The second option might be more work, but my instinct is to avoid any complexity in interactive modules.

Resources