GiftsToPrint
v1.0.0Order personalised newspaper-style birthday, anniversary and retirement posters as print files.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_posters Find a poster
Search GiftsToPrint's personalised newspaper-style posters. Each poster shows real headlines and events from one year, personalised with a name, photo and message, and is delivered as a print-ready digital file (nothing is posted). Birthday posters and wedding-anniversary posters exist per milestone and edition (e.g. 60th Birthday, Australian edition, 1966); retirement and dating-anniversary posters cover any year, chosen in the form. Pick the edition by where the recipient lives or grew up (US, UK, Canada or Australia). Returns each matching poster's handle, prices and product page. Next step…
| Parameter | Type | Description |
|---|---|---|
buyer_country | string | Optional ISO country code of the buyer (e.g. "US", "AU") to show prices in their currency. |
edition | string | Country edition: which country's news the poster shows. |
milestone | integer | The birthday or anniversary number, e.g. 60 for a 60th. |
occasion | string | What the poster celebrates. |
year | integer | The year the poster should cover (birth year, or wedding year). |
get_poster_form Get the details a poster needs
List exactly what to collect from the user for one poster: names, dates, optional message, and the photo, plus the turnaround options and prices. Ask the user for anything you don't already know. Don't invent names or dates. Next step: upload_photo, then create_poster_checkout.
| Parameter | Type | Description |
|---|---|---|
handle * | string | The poster's handle, from find_posters. |
buyer_country | string | Optional ISO country code of the buyer, for local prices. |
get_photo_upload_link Get a link to upload the photo
Create a private web page where the user can upload the poster photo from their phone or computer. Use this whenever you can't pass the user's photo to upload_photo yourself: they have no link to it, they want to pick it from their device, or a photo they attached in the chat can't be sent on. Give the user upload_page and ask them to tell you once it's uploaded, then call upload_photo with upload_id to get the photo_url. The link works for 7 days.
upload_photo Upload the photo for the poster
Store the photo that will be printed on the poster, and return the photo_url to pass to create_poster_checkout. Only use a photo the user has given in THIS conversation. Never reuse a photo or link from memory or an earlier conversation, and never use a product or poster image. If the user hasn't given a photo yet, ask them for one instead of calling this. Give exactly one of: photo (a file the user attached in this chat), image_url (a public https link to the image), image_base64, or upload_id (from get_photo_upload_link, once the user says they've uploaded). If you can't send the user's phot…
| Parameter | Type | Description |
|---|---|---|
image_base64 | string | The image file encoded as base64 (a data: URL prefix is fine). |
image_url | string | Public https:// address of the image. |
photo | A photo the user attached in this chat (ChatGPT file reference). | |
upload_id | string | The upload_id from get_photo_upload_link, after the user has uploaded on that page. |
create_poster_checkout Create the personalised checkout
Validate every detail and create a Shopify checkout for one personalised poster with all the details attached. Returns checkout_url. Nothing is charged: open checkout_url for the user to review the order and pay on GiftsToPrint's own checkout. Before calling, read the details back to the user, including the photo_url so they can check it is the right photo, and confirm they understand they will receive a digital file to print (set confirm_digital_file to true). If a field is wrong, the error lists every problem at once so you can fix them in one go.
| Parameter | Type | Description |
|---|---|---|
buyer * | object | |
confirm_digital_file * | boolean | Must be true: the buyer understands the poster is a digital file to print, not a physical print. |
handle * | string | The poster's handle, from find_posters. |
personalisation * | object | The fields from get_poster_form, keyed by their id (e.g. recipient_first_name, birth_day, birth_month). |
photo_url * | string | The photo_url returned by upload_photo. |
turnaround * | string | standard: ready the next working day, order Mon-Fri. rush_weekday: ready within 12 hours, order Mon-Fri. rush_weekend: ready within 24 hours, order Sat or Sun. |
buyer_country | string | Optional ISO country code, so checkout opens in the buyer's currency. |
instructions | string | Optional note to the designers, e.g. how to crop the photo. |