> ## Documentation Index
> Fetch the complete documentation index at: https://botpress-charmenta-pr-719.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Using custom logic with AI

export const GoodToKnow = ({children}) => {
  return <Callout icon="notebook-pen" color="#65d15a" iconType="regular">
      {children}
    </Callout>;
};

Having a custom greeting is great, but we still want the bot to respond with AI after displaying it. Let's connect the Standard Node to the Autonomous Node:

<Frame>
  <img alt="Connected Nodes" className="block dark:hidden" src="https://mintcdn.com/botpress-charmenta-pr-719/g2UEYmWJXP6qf9IZ/tutorial/basics/custom-logic/assets/connected-nodes.png?fit=max&auto=format&n=g2UEYmWJXP6qf9IZ&q=85&s=da2de448f0e452d89e9857ee16187ff5" width="1230" height="354" data-path="tutorial/basics/custom-logic/assets/connected-nodes.png" />

  <img alt="Connected Nodes" className="hidden dark:block" src="https://mintcdn.com/botpress-charmenta-pr-719/g2UEYmWJXP6qf9IZ/tutorial/basics/custom-logic/assets/connected-nodes-dark.png?fit=max&auto=format&n=g2UEYmWJXP6qf9IZ&q=85&s=2a663079e01b1576a1cc01d1f84e848e" width="1230" height="354" data-path="tutorial/basics/custom-logic/assets/connected-nodes-dark.png" />
</Frame>

Now, when you test in the Emulator, your bot begins the conversation with your hard-coded message. Then, the Autonomous Node takes the wheel for any further responses:

<Frame>
  <img alt="Custom logic with AI" className="block dark:hidden" src="https://mintcdn.com/botpress-charmenta-pr-719/g2UEYmWJXP6qf9IZ/tutorial/basics/custom-logic/assets/custom-logic-with-ai.png?fit=max&auto=format&n=g2UEYmWJXP6qf9IZ&q=85&s=8324d696acb5f2695df4de2be6a02560" width="1230" height="714" data-path="tutorial/basics/custom-logic/assets/custom-logic-with-ai.png" />

  <img alt="Custom logic with AI" className="hidden dark:block" src="https://mintcdn.com/botpress-charmenta-pr-719/g2UEYmWJXP6qf9IZ/tutorial/basics/custom-logic/assets/custom-logic-with-ai-dark.png?fit=max&auto=format&n=g2UEYmWJXP6qf9IZ&q=85&s=a4c66ce3e192224c4c17f50ddbc45ef6" width="1230" height="714" data-path="tutorial/basics/custom-logic/assets/custom-logic-with-ai-dark.png" />
</Frame>

You can use any combination of Standard Nodes and Autonomous Nodes to customize your bot's behaviour.

<GoodToKnow>
  **Why can't I transition from an Autonomous Node?**

  You may have noticed that the Autonomous Node doesn't have a right edge, meaning you can't transition from an Autonomous Node to another Node.

  This is intentional—since the Autonomous Node uses AI to generate responses in a loop, it needs a different approach for transitioning out of that loop. We'll cover this in a later section, so don't worry about it for now.
</GoodToKnow>
