Attachments can be analyzed using OpenAI's Responses API. They are passed to OpenAI in two different ways, using File Search or vision. Please refer to this link for the currently supported file types. They include most common formats, like:
c
cpp
cs
css
doc/docx
gif
go
html
java
jpeg
js
json
md
pdf
php
png
pptx
py
rb
sh
tex
ts
txt
webp