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

Issue Rendering Cards #32

Open
eduardaalonso opened this issue Mar 13, 2019 · 1 comment
Open

Issue Rendering Cards #32

eduardaalonso opened this issue Mar 13, 2019 · 1 comment

Comments

@eduardaalonso
Copy link

Hi!

I'm getting the following error when trying to render cards on the Actions on Google Simulator:

expected_inputs[0].input_prompt.rich_initial_prompt.items[0].simple_response: 'display_text' must be set or 'ssml' must have a valid display rendering.

The error is the same for any card, except for the Signin, which prompts the bot to respond: "PLACEHOLDER_FOR_SIGN_IN"

Below is the code used to render the hero card:

function createHeroCard(session) {
    return new builder.HeroCard(session)
        .title('BotFramework Hero Card')
        .subtitle('Your bots — wherever your users are talking')
        .text('Build and connect intelligent bots to interact with your users.')
        .images([
            builder.CardImage.create(session, 'https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg')
        ])
        .buttons([
            builder.CardAction.openUrl(session, 'https://docs.microsoft.com/bot-framework/', 'Get Started')
        ]);
}

The cards are correctly rendered on Azure's Web Chat.

I can't seem to find the issue here, what can I do to make it work properly?

@jinot92
Copy link

jinot92 commented Mar 21, 2019

@eduardaalonso were you able to resolve this?

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