question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting transcript from a custom action

See original GitHub issue

I’m trying to create a custom action to get the conversation transcript. Problems started trying to get the connectionString from settings, it always returns null(no issues with container name). I can see the values in chatbot appSettings. Find below the code I’m using

  StringExpression containerExpression = "=settings.runtimeSettings.features.blobTranscript.containerName";
  var containerName = containerExpression.GetValue(dc.State); //OK
  StringExpression connectionStringExpression = "=settings.runtimeSettings.features.blobTranscript.connectionString";
  var connectionString = connectionStringExpression.GetValue(dc.State); //Returns Null

Am I doing something wrong? What is the best way to do this? Also, I was trying to see if there is a way to access the built-in BlobsTranscriptStore service/middleware but I couldn’t find a way to do it. Thanks in advance for all your help on this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dmvtechcommented, Aug 26, 2021

Hi @jcmorara You can get the settings from the runtime just as you would get any settings from a .NET core app.

But if you want to get as an expression (or other memory variables other than settings.___ (turn.,user.,etc), that should be possible too. Let me take a look and see if I can find what may be the issue.

0reactions
dmvtechcommented, Sep 27, 2021

hi @jcmorara I’m going to close this as it seems as though this has been answered. Please let me know if you have further questions.

To work around this issue, a couple of ideas are:

  1. Create .NET classes in your project that can populate these values and then share to your custom action.
  2. Derive from the existing botbuilder classes and change the code to suit your needs.
  3. Store the value in another (additional) field with a path that wouldn’t be blocked that it could be pulled from.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Live Chat Transcript - Quick Actions - IdeaExchange - Salesforce
Live Chat Transcript - Quick Actions. Service / Messaging. My agents would like the option to create a custom object after a chat...
Read more >
Get transcript JSON from URL using a data action?
Using a few custom data actions, we can use the following API: ... there any way of GET-ing the transcript from this URL...
Read more >
Executing custom actions - BMC Documentation
Execute show commands to collect device information for reporting and analysis; Get device information for use by a subsequent job span action.
Read more >
Start-Transcript (Microsoft.PowerShell.Host)
The Start-Transcript cmdlet creates a record of all or part of a PowerShell session to a text file. The transcript includes all command...
Read more >
Tips & Tricks: Chat Transcript Custom Action (PHP)
During the process, your custom PHP code can also be processed to send the chat transcript to a ticketing system, save it to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found