How to use waylines properly
When you build a way station, you need to build the modules that collect the resource that you want to vacuum up from the system for example alloys, minerals is the mining array module. You can tell if they are being collected because they turn green. If a module does not do anything it cannot be placed. Some modules create output and thus can always be placed like Stellar observatory. 99% of the time you just want to place:
Solar array (energy) Mining array (minerals/alloys) Processing bay (rare resources) or Research observatory (research+darkmatter+astral threads+nano+zro)
When you build your waystations into a wayline you want to setup ONE of the waystations with the module "logistics hub" which allows every other connected one to be collect through that single waystation. Leave one ship in orbit of that way station. You now collect from everything. You will see a blub of text in the top right of the waystation UI that says "On going transfer" in the waystation you built the logistics hub in and "Remote transfer" in the other waystations which lets you tell if they are connected or not. Unfortunately the UI is jank even by stellaris standards and does not show up in your monthly expected production, note thats really bad and I haven't poked at the AI yet but I am 99% sure it is a disaster for them.
**This works through wormholes and a am 99% sure it works through the other bypasses as well.**
Also MAKE SURE YOU UPGRADE THE WAY STATIONS to max LEVEL regardless of if you need the building slots or not. The game doesn't show you this easily but they get a bonus to "collection rate" which multiplies the output of the underlying resources and gives it to you. I am get +140% on most resources that way resulting in me collections absurd amounts of alloys from AI arc furnaces.
Also (and this is 99% a bug) you can double dip on your Dyson swarm outputs. Because those are collected by the megastructure. And can be collected by your waystations.
You should be hunting to connect yourself to a lot of arc furnaces and dyson swarms as well as placing your arch furnaces and dyson swarms strategically to boost vassals or allys. Using them on vassals lets you double dip the resources.
I haven't touched nano machine builds yet but I assume they do something absurd.