Add vision capabilities to your Voiceflow agent with OpenAI and Anthropic
Supabase Uploads
- Create a supabase bucket from the Supabase UI
- Add a policy to allow public uploads:
CREATE POLICY "allow uploads" ON storage.objects FOR INSERT TO public WITH CHECK (bucket_id = 'your-bucket-name');Voiceflow Extension
- Import the
image_upload.ext.jsextension in your Voiceflow installation snippet - Set up the custom extension in your Voiceflow project
Check the provided template for reference: Vision_Agent.vf
AI Functions
- Pass the image URL to an AI model using the provided functions
- Use the response of the AI model in your prompt
You can run the demo project with the following command:
npx serve srcMarketplace
Video
Vision AI
- https://platform.openai.com/docs/guides/images?api-mode=responses
- https://docs.anthropic.com/en/docs/build-with-claude/vision
More
- https://www.voiceflow.com/contributors/juan-carlos-quintero
- https://docs.voiceflow.com/docs/custom-web-chat-widgets
- https://supabase.com/docs/guides/storage/uploads/standard-uploads
- https://supabase.com/docs/reference/javascript/storage-from-upload
- https://supabase.com/docs/reference/javascript/storage-from-getpublicurl
- https://github.com/supabase/supabase/tree/master/examples/storage/resumable-upload-uppy
