Agenda Function Setup is exactly the same as setting up a function in the Functions Module.
Tip: You don't need to swap to the Setup panel to create new Functions, just create them here directly.
Click here to view information on the Functions Module.