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

Use of Service token generated. #56

Open
nidhi2802 opened this issue Jul 15, 2021 · 2 comments
Open

Use of Service token generated. #56

nidhi2802 opened this issue Jul 15, 2021 · 2 comments

Comments

@nidhi2802
Copy link

Can we use the same service token generated by the lambda function for creating more than more than one intent?

@andrew-templeton
Copy link
Owner

andrew-templeton commented Jul 15, 2021 via email

@nidhi2802
Copy link
Author

Can we use the same service token generated by the lambda function for creating more than more than one intent?

YesconfirmIntent:
Type: 'Custom::LexIntent'
Properties:
ServiceToken: !GetAtt intentStack.Outputs.SharedValueOutput2
name: YesconfirmIntent
confirmationPrompt:
maxAttempts: 1
messages:
- content: >-
Should I confirm your order?
contentType: PlainText
description: !Ref IntentDescription
fulfillmentActivity:
type: ReturnIntent
rejectionStatement:
messages:
- content: 'Ok, I''ll cancel your order.'
contentType: PlainText
- content: I cancelled your order.
contentType: PlainText
sampleUtterances:
- 'Yes'
- 'Yes order it'

OrderProduct:
Type: 'Custom::LexIntent'
DependsOn:
- ProductNameSlot
- ProductQuantitySlot
- ProductColourSlot
Properties:
ServiceToken: !GetAtt intentStack.Outputs.SharedValueOutput2

I have used the above code where in nested stack is created for LexBotIntent and that service token I have used in OrderProduct as well as YesconfirmIntent but when I update the stack the stack gets freezed. So can you help finding in what is the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants