# AI NPC Not Doing Action

**URL:** <https://forum.convai.com/t/ai-npc-not-doing-action/2397>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [January 8, 2025, 10:38pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397 "2025-01-08T22:38:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 8, 2025, 10:38pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/1 "2025-01-08T22:38:12Z")

</div>

I followed the Youtube tutorials and documentation for Convai for the AI NPC bringing the crystal to the player. Although, when I prompt my AI to bring me the object, it responds with something else and does not move.

 ![Screenshot 2025-01-08 173802](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/6/660267d503d4e30773b87f079008f31ce90ba3db.png)

---

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 8, 2025, 10:51pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/2 "2025-01-08T22:51:41Z")

</div>

I said “Can you pick up the controller?”. She said “Of course” and started walking in place

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [January 8, 2025, 10:57pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/4 "2025-01-08T22:57:29Z")

</div>

Hello @Nisarg_Oza,

Please make sure to follow the [Setting Up NavMesh](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/adding-actions-to-your-character) section of the documentation.

---

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 8, 2025, 11:08pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/5 "2025-01-08T23:08:13Z")

</div>

I added the NavMeshAgent component to my NPC and I went into Navigation (Obsolete) and clicked Bake. Am I missing anything with the Dynamic Move Target Indicator?

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [January 9, 2025, 2:47pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/6 "2025-01-09T14:47:44Z")

</div>

Could you please provide the following details?

1. **Scene Hierarchy** : A screenshot or description showing how your scene is organized, particularly for the NPC and navigation-related objects.

2. **Inspector Settings** : The configuration details of your **ConvaiNPC** , **NavMeshAgent** , and **NavMeshSurface** components.

3. **Console Logs** : Any error or warning messages from the console that might indicate issues.

These details will help us diagnose the problem and guide you more effectively.

---

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 9, 2025, 3:55pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/7 "2025-01-09T15:55:54Z")

</div>

![Screenshot 2025-01-09 105139](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/b/b7d07926b27efcb914d36df74ed81446f5afe3a0.png)  
 ![Screenshot 2025-01-09 105410](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/5/55f7b53791877e0bbfe89c5ad4aa1b0db4e0b98b.png)  
 ![Screenshot 2025-01-09 105544](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/9/9a06a058852a3ab25eb23fd00a19ad14c8d4c0f3.png)

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [January 9, 2025, 4:54pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/8 "2025-01-09T16:54:34Z")

</div>

Could you please add the NavMeshSurface component to the mesh (Ground) where your NPC is supposed to walk? After adding it, bake the NavMesh using the updated NavMeshSurface component.

---

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 9, 2025, 5:12pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/9 "2025-01-09T17:12:59Z")

</div>

I added the NavMeshSurface Component to the floor prefab and I also clicked Window / AI / Navigation (Obsolete) / Bake

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [January 9, 2025, 7:34pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/10 "2025-01-09T19:34:01Z")

</div>

Please follow this documentation.

[https://docs.unity3d.com/Packages/com.unity.ai.navigation@2.0/manual/CreateNavMesh.html](https://docs.unity3d.com/Packages/com.unity.ai.navigation@2.0/manual/CreateNavMesh.html)

---

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 9, 2025, 7:51pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/11 "2025-01-09T19:51:50Z")

</div>

Thank you so much for helping me out

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [January 9, 2025, 7:58pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/12 "2025-01-09T19:58:30Z")

</div>

You’re very welcome! Did this resolve your issue? Let us know if there’s anything else we can assist you with. 😊

---

<div class="post-metadata">

**Author:** ![Nisarg\_Oza](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/nisarg_oza/32/2716_2.png) [@Nisarg\_Oza](https://forum.convai.com/u/Nisarg_Oza)\
**Post date:** [January 9, 2025, 8:38pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/13 "2025-01-09T20:38:54Z")

</div>

Yes, it resolved my issue. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/e60ef96aa7334c5ccf6682f6c6dbc20fcfa96b49.png) [@system](https://forum.convai.com/u/system)\
**Post date:** [January 11, 2025, 8:39pm UTC](https://forum.convai.com/t/ai-npc-not-doing-action/2397/14 "2025-01-11T20:39:48Z")

</div>

Closed on January 11, 2025, 8:39pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
