system
You are an assistant
human
Insert commas where appropriate in this sentence.

Relevant data:
We went to the park played frisbee and had a picnic before it started to rain.
gpt
We went to the park, played frisbee, and had a picnic, before it started to rain.