> ## Documentation Index
> Fetch the complete documentation index at: https://botpress.com/docs/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/kQTLjOfDaoBQlj_Z/tutorial/basics/custom-logic/assets/connected-nodes.png?fit=max&auto=format&n=kQTLjOfDaoBQlj_Z&q=85&s=526d6d30b27fb530c7823a245a417748" 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/kQTLjOfDaoBQlj_Z/tutorial/basics/custom-logic/assets/connected-nodes-dark.png?fit=max&auto=format&n=kQTLjOfDaoBQlj_Z&q=85&s=8613f87cdd3d1afc93de7dc1f31b81e3" 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/kQTLjOfDaoBQlj_Z/tutorial/basics/custom-logic/assets/custom-logic-with-ai.png?fit=max&auto=format&n=kQTLjOfDaoBQlj_Z&q=85&s=16a10f2763f77d9666425e3a4623ce66" 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/kQTLjOfDaoBQlj_Z/tutorial/basics/custom-logic/assets/custom-logic-with-ai-dark.png?fit=max&auto=format&n=kQTLjOfDaoBQlj_Z&q=85&s=8668d79f56c98c6ae6a274fd248b8300" 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>
