> ## Documentation Index
> Fetch the complete documentation index at: https://botpress-pb-update-api.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-pb-update-api/p4207HaMDnDWz-I-/tutorial/basics/custom-logic/assets/connected-nodes.png?fit=max&auto=format&n=p4207HaMDnDWz-I-&q=85&s=e3fcb2fa3a2f5f02cc32060f17f1f6e7" 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-pb-update-api/p4207HaMDnDWz-I-/tutorial/basics/custom-logic/assets/connected-nodes-dark.png?fit=max&auto=format&n=p4207HaMDnDWz-I-&q=85&s=40ccaeebf71181950b44bfa1ab2fe073" 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-pb-update-api/p4207HaMDnDWz-I-/tutorial/basics/custom-logic/assets/custom-logic-with-ai.png?fit=max&auto=format&n=p4207HaMDnDWz-I-&q=85&s=0ca24dfb65a90625e0c842ac7e2db04d" 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-pb-update-api/p4207HaMDnDWz-I-/tutorial/basics/custom-logic/assets/custom-logic-with-ai-dark.png?fit=max&auto=format&n=p4207HaMDnDWz-I-&q=85&s=48c9a521d6300a2b058e9ebea00bf638" 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>
