Is it possible to connect a function and a graph?

On the event graph, create a new Custom Event. Let’s call it ActivateTimeline. Since it’s on the event graph, you can use your timeline there.

Then in your blueprint’s function, simply call ActivateTimeline.