Considering, that you haven't written a chord progression, then, to write a basic melody, you must pick a scale and experiment using different notes and rhythm.

If you have already written a chord progression, you must know what scale you are in, or follow the notes of the chords.

If you want to make it more advanced, you can learn more about borrowing notes from other scales and using modal mixture.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence