There is a Batch feature in the Actions Palette. See online Help for Actions.
Beyond that, it depends on what exactly you want to automate. Not every command in the program is accessible by Actions (or scripting).
Perhaps you want to ask about a specific action and we can see if you will come up against the limitations of actions in Illustratorand you might also want to visit the adobe Illustrator Scripting forum.