To what extent did the assassination of Franz Ferdinand cause WWI?

To what extent did the assassination of Franz Ferdinand cause WWI?