Can tasks return an image?

I have been looking through Tasks - CrewAI and there appears to be no way to output an image.
Are there any plans to craft a task that would ‘output_image’? It would be so useful when crafting documents as good documents need a chart or two :slight_smile:

Any ideas welcomed.

What about a custom tool to generate and download the image from a url and save it? Wouldn’t that work?

Assuming you use a tool to generate the visual, then I think the only way you could export that image today would be to base64 the binary of the image.

This will allow you to transfer it (output it) as a “string”, when it’s time to render it, you can base64 decode it.

I hope this helps!

1 Like

I wish that CrewAI had an image output. We can build tools, but an official tool for image and video would be great for our agentic flows.

You are right, official support for multimedia output would be a welcome addition. I’ll take a look and see if I can cook something up :sweat_smile:

1 Like