Get the code
Add TasteRay ForMe to any page in two steps. No build tools, no signup, no API key.
1 Add the script
Include the widget script before your closing </body> tag:
<script src="https://forme.tasteray.com/widget.js" defer></script>
2 Add a button
Add a button (or any element) with data attributes describing your product:
<button data-tasteray-feature="for-me" data-tasteray-title="Your Product Name" data-tasteray-medium="product" data-tasteray-description="A brief description of the product..." data-tasteray-lang="en" >Is this for me?</button>
That's it. The widget handles the modal UI, conversation, and results.
Data attributes reference
| Attribute | Required | Description |
|---|---|---|
data-tasteray-feature |
Yes | Must be "for-me" to activate the widget |
data-tasteray-title |
Yes | Product or media name |
data-tasteray-medium |
Yes | What you are selling. Any non-empty text, such as product or movie. Without it the chat does not start. |
data-tasteray-description |
Recommended | Brief description (100+ chars recommended). If short or missing, the widget can scrape from URL. |
data-tasteray-lang |
No | Language: en or pl. Auto-detected from page if omitted. |
data-tasteray-year |
No | Release or publication year (useful for movies, books, games; leave it out for physical products) |
data-tasteray-url |
No | Product URL for automatic description scraping |
React example
import { useEffect } from 'react'; export function ForMeButton({ title, description }) { useEffect(() => { const s = document.createElement('script'); s.src = 'https://forme.tasteray.com/widget.js'; s.defer = true; document.body.appendChild(s); return () => s.remove(); }, []); return ( <button data-tasteray-feature="for-me" data-tasteray-title={title} data-tasteray-medium="product" data-tasteray-description={description} >Is this for me?</button> ); }
Anything you sell: the medium value
data-tasteray-medium is required and takes any non-empty text, so a value like board-game works as well as the ones below. Leave it out, or leave it empty, and the chat request fails with a 400. Ray reads the value along with the title, so use the plainest word for what the thing is.
product: physical products, electronics, fashion and so onmovie: moviestv-series: TV seriesdocumentary: documentariescomputer-game: video gamesbook: books and publicationsalbum: music albums and EPspodcast: podcastsartist: musicians and bandsconcert: live shows and tours
For a product few people have heard of, the answers are only as good as what the widget can read, so write a description of 100 characters or more. Running ForMe across a store or a platform? See TasteRay for stores.
How it works
- User clicks the button and a modal opens with a chat interface
- The AI asks about five psychographic questions tailored to the specific product
- A match score and explanation are shown, with an alternative suggestion if the fit is low
- Returning users get faster matches, because the widget remembers their taste profile in localStorage