Exports have helped offset weak spending at home, but trade tensions and AI doubts cloud its outlook.