This Minecraft tutorial will teach you how to make signs run commands when you click them
COMMAND:
setblock ~ ~1 ~ minecraft:oak_sign[rotation=12]{Text1:"{\"text\":\"hello\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"say hi\"}}"}
(Please note that my YT account has changed since the creation of this video)