media_upload
Store images from this conversation (generated here or attached by the merchant) in the shop's media library and get a public address for each. Use it whenever a picture has no public address of its own, then give each product its picture with products_add_image using the returned url (propose_plan for several). Pass the images as images; a client that cannot pass files may send one small image as data_base64 instead. Images are re-encoded to WebP; nothing on the storefront changes until a product is given the picture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | No | The images, as files from this conversation. | |
| file_name | No | A name for the base64 image, e.g. velinha-baunilha.png. | |
| data_base64 | No | One image's bytes in base64, only when files cannot be passed. |