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.

Hook to customize channelData

See original GitHub issue

Feature Request

I think we should be able to customize the channelData via a simple hook. We pass custom data via the channelData for our messages. I want to be able to easily mutate the channelData both on a per message basis and on init.

Is your feature request related to a problem? Please describe.

We rely on channelData to determine our vendor and other information on the client. I want to use hooks similarly to the plain web chat sample, but can’t find an elegant way to mutate the channelData without deviating from the hooks design.

Describe the suggestion or request in detail

Similar to other hooks, but we’re able to update the channelData on per message and global level.

Describe alternatives you have considered

Moving away from hooks and using BotFramework-DirectLineJS methods.

[Enhancement]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samazadicommented, Dec 19, 2019

Thanks for that example, I was able to test it out and it accomplished customizing our channelData.

0reactions
cwhittencommented, Jan 2, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add values to channelData of message using hooks
I am using the Customization Plain UI sample and need to add custom data to the channelData. What is the best way to...
Read more >
Send custom ChannelData · Issue #395 - GitHub
I want to send custom ChannelData object from webchat to my bot. ... to modify channelData, there would need to be an extensibility...
Read more >
Using Custom Channel Data in Bot Framework v4 - bisser.io
Now there was one thing I found which could do the trick for me: Custom Channel Data Property (you can find out what...
Read more >
Using custom channel data in bot messages - Bot Framework
Before understanding how to modify channel data, it helps to first know what it is ... Then, we just have to connect it...
Read more >
Implement channel-specific functionality in Bot Framework SDK
Create a custom email message. To create a custom email message, set the activity channelData property to a JSON object that contains the ......
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