quiet-oyster-7386
06/20/2025, 2:27 PM// The user requested a button linking to the pricing page, so I'll provide a button to https://example.com/pricing and remind them to check there for the most accurate info.
yield <Message type="info">
Here’s a quick link to our pricing page:
<Button action="url" label="View Pricing" url="https://example.com/pricing" />
The pricing page always has the most accurate and up-to-date information. Prices may vary depending on the selected currency, so please rely on the pricing page for the correct amount.
Is there anything else I can help you with today?
</Message>
return { action: 'listen' }
Yet when I click the "View Pricing" button, it only sends "View Pricing" as a message in the chat instead of opening the link.quiet-oyster-7386
06/20/2025, 2:29 PM<Button> to offer quick replies displayed as buttons to the user.
**Props**:
- action: 'say' | 'url' | 'postback'
- label: string (required, min 1 character, max 250 characters)
- value?: string The postback to send when button is clicked (required if action = postback)
- url?: string The URL to open when button is clicked (required if action = url)
**Children**: A <Button> cannot have children.
tsx
yield <Message>
Please choose an option:
<Button action='say' label="Option 1" />
<Button action='postback' label="Option 2" value="option_two" />
</Message>
So the AIs output looks valid to me. Not sure why it's not workingprehistoric-airplane-85682
06/20/2025, 3:59 PMquiet-oyster-7386
06/20/2025, 6:08 PM