Mixtiles It
by @saharcarmel
Send a photo to Mixtiles for ordering wall tiles. Use when a user forwards/sends a photo and wants to order it as a Mixtile, add it to their Mixtiles cart, o...
clawhub install mixtiles-itπ About This Skill
name: mixtiles-it description: Send a photo to Mixtiles for ordering wall tiles. Use when a user forwards/sends a photo and wants to order it as a Mixtile, add it to their Mixtiles cart, or says "mixtile this", "make this a tile", or similar. Also handles image URLs.
Mixtiles It
Turn any photo into a Mixtiles order link. User sends a photo (or image URL) β get back a ready-to-order Mixtiles cart link.
How It Works
1. User sends/forwards a photo or image URL 2. Run the upload script to get a public URL and Mixtiles cart link 3. Send the cart link back β user taps it to customize and order
Usage
# Single photo
python3 scripts/mixtiles-cart.py [--size SIZE]Multiple photos (one cart link with all photos)
python3 scripts/mixtiles-cart.py --batch ... [--size SIZE]
The script handles:
Size Options
Default is RECTANGLE_12X16. Other known sizes from Mixtiles:
SQUARE_8X8 β Classic squareRECTANGLE_12X16 β Portrait rectangle (default)RECTANGLE_16X12 β Landscape rectangleEnvironment Variables (optional)
CLOUDINARY_CLOUD β Cloudinary cloud name (default: demo)CLOUDINARY_PRESET β Cloudinary unsigned upload preset (default: unsigned)MIXTILES_UPLOAD_URL β Override the upload API endpoint (Railway fallback)MIXTILES_UPLOAD_KEY β Override the upload API key (Railway fallback)Workflow
When a user sends a photo with intent to mixtile it:
1. Identify the image file path (from media attachment) or URL
2. Run: python3
3. Send the resulting URL to the user with a brief message like "Here's your Mixtiles link! πΌοΈ Tap to customize size, frame, and order."
If multiple photos are sent, use --batch to create a single cart link with all photos:
python3
π‘ Examples
# Single photo
python3 scripts/mixtiles-cart.py [--size SIZE]Multiple photos (one cart link with all photos)
python3 scripts/mixtiles-cart.py --batch ... [--size SIZE]
The script handles:
Size Options
Default is RECTANGLE_12X16. Other known sizes from Mixtiles:
SQUARE_8X8 β Classic squareRECTANGLE_12X16 β Portrait rectangle (default)RECTANGLE_16X12 β Landscape rectangleEnvironment Variables (optional)
CLOUDINARY_CLOUD β Cloudinary cloud name (default: demo)CLOUDINARY_PRESET β Cloudinary unsigned upload preset (default: unsigned)MIXTILES_UPLOAD_URL β Override the upload API endpoint (Railway fallback)MIXTILES_UPLOAD_KEY β Override the upload API key (Railway fallback)