GiftsToPrint

v1.0.0
com.giftstoprint/poster-connector Checked 1 day ago Published 2 months ago

Order 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…

ParameterTypeDescription
buyer_countrystringOptional ISO country code of the buyer (e.g. "US", "AU") to show prices in their currency.
editionstringCountry edition: which country's news the poster shows.
milestoneintegerThe birthday or anniversary number, e.g. 60 for a 60th.
occasionstringWhat the poster celebrates.
yearintegerThe 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.

ParameterTypeDescription
handle *stringThe poster's handle, from find_posters.
buyer_countrystringOptional ISO country code of the buyer, for local prices.

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…

ParameterTypeDescription
image_base64stringThe image file encoded as base64 (a data: URL prefix is fine).
image_urlstringPublic https:// address of the image.
photoA photo the user attached in this chat (ChatGPT file reference).
upload_idstringThe 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.

ParameterTypeDescription
buyer *object
confirm_digital_file *booleanMust be true: the buyer understands the poster is a digital file to print, not a physical print.
handle *stringThe poster's handle, from find_posters.
personalisation *objectThe fields from get_poster_form, keyed by their id (e.g. recipient_first_name, birth_day, birth_month).
photo_url *stringThe photo_url returned by upload_photo.
turnaround *stringstandard: 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_countrystringOptional ISO country code, so checkout opens in the buyer's currency.
instructionsstringOptional note to the designers, e.g. how to crop the photo.