When Calls Ends, Creating Note with the call description by deluge code

When Calls Ends, Creating Note with the call description by deluge code

Hi, i need help with writing deluge code function,
to scenario is like this -
i want to create a workflow
thats after 10 that the call ends
the deluge function will create a new note in module calls
that link the note in module calls to the his lead ticket
and the description in the note, gonna the same description in the call description

note that sometimes, my salesman first hang up and then goona write the call description
because of that i want a 10 min delay

thank for the help