Analyze a video
Understand what a client sees in a video they send.
Extract several frames spread throughout the video — six by default, up to ten — and send them together to your AI with what you ask it to look for. The response lands in {{vars.video.text}} so the agent or a condition can use it.
It costs more than reading an image: several photos in the same call, so it runs a few times the price of one image, and it charges your credits the same way.
To make the workflow tell a photo apart from a video, put a condition first on {{payload.message.type}}: use IMAGE for a photo and VIDEO for a video. If "Read image" gets a video, it no longer fails: it looks at a single frame, at the price of one photo.
What you can do
- See the state of furniture, a car, or a room in a video.
- Count what the client does in a recording of a fault.
- Split photos and videos with a condition and handle each with its own node.
An example
Furniture cleaning
- The client sends a video of the sofa over WhatsApp.
- A condition checks if the message is VIDEO and sends it to "Analyze video".
- The node notes the material, size, and stains visible.
- The agent answers with a rough quote.
Recommendations
- Use few frames if the video is short: three or four usually does it and costs less.
- Ask in the prompt exactly what you need to know, not a general description.
- For the agent to read it, run it through "Describe message" first: it arrives as "[The client sent a video. What it shows: …]" and not as if the client had written it.
Watch out for this
- It reads frames, not audio: what's said in the video doesn't come through. For audio, use "Transcribe audio".
- A very long video is read the same with few frames: what happens between one and another isn't seen.
- It has a "couldn't do it" output (the file won't download, it's not a video, or the AI fails): connect it to decide what happens next. If it doesn't lead anywhere, continue to "Analyzed" with a warning for the agent ("[Couldn't see the video the client sent…]") and the execution gets marked.
- Sometimes the AI answers "I can't describe the video content" even though it has the frames in front of it. Ask it again, which almost always works; if it refuses again, it goes out "couldn't do it" and the execution gets marked instead of counting it as analyzed. Works the same on WhatsApp, Instagram, and Messenger.
