Upload an image to a connected site
content_uploadAdd images to a connected site's media library (WordPress) or files (Shopify): images from this conversation (generated here or attached by the user) as images, or one image from a public address as url; a client that cannot pass files may send one small image as data_base64. jpeg, png, gif, webp or avif, up to 15 MB each, up to 10 a call, with alt text and title. On WordPress the answer has each media id to use as featured_media or inside content; on Shopify put an image on a product with content_save add_image (its file address), on a blog post with image_url. Allowed in drafts-only mode: an image in the library shows nowhere until something uses it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public address of one image. | |
| site | No | The connected site, by its name or address (see connected_sites). Optional when one site is connected. | |
| title | No | ||
| images | No | Images from this conversation, as files. | |
| alt_text | No | Alt text for every image of the call, unless alt_texts gives one each. | |
| filename | No | A name for the url or base64 image, like lavender-candle.png. | |
| alt_texts | No | One alt text per image, in the order of images. | |
| data_base64 | No | One image's bytes in base64, only when files cannot be passed. |