How to create a Markdown file?

I have an agent that gets information and outputs it into markdown format. I want to be able to convert this to a markdown file and upload it to and s3 bucket.

I tried to just make the file name test.md within an s3 node, and make the content the agent’s output. But it still isnt uploaded as an md file to s3. Any suggestions?

Hey @Collin hope all is well.

Could you share the workflow. Also please share how the file looks like when uploaded to S3 bucket.

If I download it on s3 it is still a txt file.

Here is an example:

Well, an md file IS in fact a text file. Or do you mean it has a txt extension?

lol good point. But it has a txt extension

Interesting. Well the S3 node does have the name of the file specified, not sure where it even gets the txt from. So is the name test.txtor test.md.txt? Is this behaviour consistent? If you delete the file and re-run the workflow it creates it again?

The name is just “test.txt”. In S3 it has the type as md.
For the metadata:

  • Type: system defined
  • Key: Content-Type
  • Value: text/plain

Do you have any suggestions on what I could change?

What if you don’t set the name in S3 node (just leave blank) and let it inherit the name from the previous node?

I’m going to go ahead and see if i can treat the txt file as an md file in aws. Thank you for the help though!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.