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.

Not able to pass an activity to skill bot

See original GitHub issue

Describe the bug

I have a dialog that connects to a skill, I’m setting the activity as ${conversation.query} like in the screenshot, to pass that variable to the bot , also setting Activity processed as false, but no luck, the skill is receiving what is in turn.activity.text anyway.

Version

Version 2.0

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

Chrome

  • macOS
  • Windows
  • Ubuntu Windows

To Reproduce

Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior

Screenshots

image

Additional context

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gapmdqcommented, Jun 25, 2021

Hi Srinaath I’m not sure if I’m missing something but the skill is still receiving what the user input (turn.activity.text) and it is ignoring Activity value. For example I typed “ticket”, trigger the Skilldialog , the skill dialog connects to the skill sending the activity as you mention, but the skill it is still recognizing the input value. Skill trace: { “recognizerResult”: { “text”: “ticket”, “alteredText”: null, “intents”: { “TicketClose”: { “score”: 0.49167684 } }, “entities”: {} } }

Thanks!

1reaction
srinaathcommented, Jun 22, 2021

@gapmdq Instead of using the friendly editor. Can you use the code editor and pass the value through an activity template like this.

[Activity
type = event
name = AddTodo
value = ${{ "itemTitle": "my todo", "listType": "todo" }}
]

Screen Shot 2021-06-22 at 10 34 12 AM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing Data from skills bot to root bot without using dialogs
Hi @ambuj74, you can use the value property of the activity to pass parameters to a skill something like: turnContext.Activity.Value = JObject.
Read more >
Post IInvokeActivity from root bot to Skill bot - Stack Overflow
When we click on Login button TeamsActivityHandler generates IInvokeActivity, but I am not able to pass control to Skill bot again due to ......
Read more >
Implement a skill - Bot Service | Microsoft Learn
A skill is a bot that can perform a set of tasks for another bot. ... However, you need to send an endOfConversation...
Read more >
18 - Lets start Skill in Bot Composer - YouTube
Bot Framework Skills : A skill can be consumed by various other bots, facilitating reuse, and in this way, you can create a...
Read more >
Exchanging data with Skills - Microsoft Open Source
Bot Framework Skills provides the capability to pass data to a Skill through the Value property on the Activity sent to the Skill...
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