Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation Start Properties not being passed to the PVA Bot #352

Closed
kaust-technovert opened this issue Aug 30, 2021 · 6 comments
Closed
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete.

Comments

@kaust-technovert
Copy link

kaust-technovert commented Aug 30, 2021

I am passing a variable while creating the DirectLine object that I am using for my Power Virtual Agent
image

Like this.

However, when I am trying to access this variable in the bot topic, I am unable to.
image

As you see in the screenshot, I am supposed to get a "Yes" answer automatically but it is not detecting any value and the flow is moving the question topic.

I am a beginner with programming but I checked the source code on how conversationStartProperties is being used but I see that there are no references to that variable anywhere..?

image

Kindly help me with this issue as I was unsuccessful in finding any relevant solution anywhere on the internet.
Thank you in advance.

@LeeParrishMSFT LeeParrishMSFT added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. labels Aug 31, 2021
@stevengum
Copy link
Member

@kaust-technovert are you using Web Chat or are you directly using Direct Line JS in your client?

The ConversationStartProperties have a specific shape for the Start Conversation API, so it might be that what you're trying to achieve is not possible via this approach.

If you are using Web Chat, I recommend checking this sample: 04.api/a.welcome-event for sending an Event activity to the bot with relevant data before other activities begin to appear in Web Chat.

@kaust-technovert
Copy link
Author

I am using DirectLineJS directly in my client, and there is also some custom implementation which I cannot mess with. So I cannot use WebChat.
Is there any example for passing ConversationStartProperties to the bot and be able to use it?

@LeeParrishMSFT LeeParrishMSFT added the customer-replied-to Required for internal reporting. Do not delete. label Sep 1, 2021
@srinaath
Copy link

@stevengum Are you aware of any way to pass ConversationStartProperties?

@compulim
Copy link
Collaborator

compulim commented Sep 20, 2021

@timenick should know more about this topic.

@timenick
Copy link
Contributor

@kaust-technovert like Steven said "The ConversationStartProperties have a specific shape for the Start Conversation API, so it might be that what you're trying to achieve is not possible via this approach." We do not support passing customized parameters and value for now.

@munozemilio
Copy link
Member

Closing as not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

No branches or pull requests

8 participants