tjwalters
tjwalters

Reputation: 1

Actions-On-Google Card Subtitle not displaying in Simulator or Android phone

I'm using the DialogFlow Fulfillment Inline Editor to build a quick prototype/POC Google Action. I'm trying to add a subtitle to a Card using the Node.js code below (based on the default Fulfillment Node.js code) and it's not showing up in the Simulator or on my Android phone. Otherwise, the Card is rendering properly - all other properties are being displayed, but no subtitle. I've also tried creating the Card separately and setting the subtitle property directly (card.subtitle = 'The Subtitle';), but that also did not work. There is no 'subtitle' being returned in the response data, and there are no errors being logged (either in the "ERRORS" tab or the "View logs").

  agent.add(new Card({
    imageUrl: 'https://example.org/images/logo.png]',
    title: `${titleCase(theTitle)}`,
    subtitle: 'The Subtitle',
    text: `${theText}`,
    buttonText: 'Get More Information',
    buttonUrl: 'https://example.org/info'
  }));

Thoughts on what might be going on here?

Upvotes: 0

Views: 82

Answers (1)

Thomas Lombart
Thomas Lombart

Reputation: 433

There is no such thing as subtitle for a Card to my knowledge. You are probable confounding with the BasicCard from the Actions On Google library which does have a subtitle property.

Hope it helps.

Upvotes: 2

Related Questions