# Unity long-term memory

**URL:** <https://forum.convai.com/t/unity-long-term-memory/1895>\
**Category:** Unity SDK\
**Tags:** question, unity, vr\
**Created:** [October 14, 2024, 1:03pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895 "2024-10-14T13:03:43Z")\
**Posts on this page:** 16\
**Page:** 1

<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:** [October 14, 2024, 1:03pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/1 "2024-10-14T13:03:43Z")

</div>

**Original Discord Post by biramaciel | 2024-10-14 13:03:43**

Hello, I am facing the following error when I try to implement long-term memory in unity (with SDK v3.1.0):

[Error][GRPC]: 403 (Forbidden)

Any suggestions on what I might be forgetting to configure?

The long-term memory option is already configured in the playground and the long-term memory script is set to “enable” in the character object.

An additional information is that this error log appears immediately afterwards: [Exception][GRPC]: Exception caught: Value cannot be null.  
Parameter name: value

---

<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:** [October 14, 2024, 1:07pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/2 "2024-10-14T13:07:15Z")

</div>

**Reply by k3kalinix | 2024-10-14 13:07:15**

\<@415207243487772673\>  
cc: \<@&1163218322200989806\>

---

<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:** [October 14, 2024, 1:08pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/3 "2024-10-14T13:08:51Z")

</div>

**Reply by raymondedmund | 2024-10-14 13:08:51**

\<@495303196160557096\>, Can you please share your Character ID and the session ID? We will look into the issue

---

<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:** [October 14, 2024, 1:13pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/4 "2024-10-14T13:13:49Z")

</div>

**Reply by biramaciel | 2024-10-14 13:13:49**

Here it is:

Character ID 1a73622a-80b0-11ef-9a08-42010a7be011

Session ID: 7ec9db4a1bb23965080bdef6e97f86e5

Thanks

---

<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:** [October 14, 2024, 4:04pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/5 "2024-10-14T16:04:32Z")

</div>

**Reply by tyke\_18 | 2024-10-14 16:04:32**

I’m getting this error too when I run my project in the Unity editor (it probably happens when I run it on my VR headset but can’t see the error then of course), I’ve ignored it up to now but have noticed there doesn’t seem to be a long term memory in action, I will create a new post in the Support section with Char and Session ID’s.

---

<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:** [October 14, 2024, 4:07pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/6 "2024-10-14T16:07:06Z")

</div>

**Replying to tyke\_18’s Message**

> **Reply by tyke\_18 | 2024-10-14 16:04:32**  
> I’m getting this error too when I run my project in the Unity editor (it probably happens when I run it on my VR headset but can’t see the error then of course), I’ve ignored it up to now but have noticed there doesn’t seem to be a long term memory in action, I will create a new post in the Support section with Char and Session ID’s.

**Reply by k3kalinix | 2024-10-14 16:07:06**

\<@708608540763357234\>, If you are not using the LTM feature, you can check this post.

> **[Discord - Group Chat That’s All Fun & Games](https://discord.com/channels/890819304386338856/1294241660242497567/1294252632730374205)**
>
> Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang 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:** [October 14, 2024, 4:08pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/7 "2024-10-14T16:08:46Z")

</div>

**Replying to k3kalinix’s Message**

> **Reply by k3kalinix | 2024-10-14 16:07:06**  
> \<@708608540763357234\>, If you are not using the LTM feature, you can check this post.

> **[Discord - Group Chat That’s All Fun & Games](https://discord.com/channels/890819304386338856/1294241660242497567/1294252632730374205)**
>
> Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

**Reply by tyke\_18 | 2024-10-14 16:08:46**

Hi K3, I have LTM enabled in the Unity component and in characters settings in the Dashboard.

---

<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:** [October 14, 2024, 4:15pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/8 "2024-10-14T16:15:26Z")

</div>

**Reply by raghuvanshagarwal | 2024-10-14 16:15:26**

Hey, it might be possible API key is not properly setup

---

<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:** [October 14, 2024, 4:16pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/9 "2024-10-14T16:16:37Z")

</div>

**Reply by raghuvanshagarwal | 2024-10-14 16:16:37**

Or number of speaker ids that you can create has reached the quota, we are working on a system where you can see all the speaker ids created using the api key and delete them

---

<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:** [October 14, 2024, 4:16pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/10 "2024-10-14T16:16:48Z")

</div>

**Reply by raghuvanshagarwal | 2024-10-14 16:16:48**

It will be soon released

---

<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:** [October 14, 2024, 4:23pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/11 "2024-10-14T16:23:31Z")

</div>

**Reply by tyke\_18 | 2024-10-14 16:23:31**

Hi, I’m getting this error too (I’m using Convai 3.1.0), I have LTM enabled in Unity and in the memory settings for the character. It’s been happening for a while and I’ve ignored it, there doesn’t seem to be much if any long term recall ability for the character. It happens with all my characters, here is a character and session ID where it has just happened : Character ID: 37d2b31c-7cea-11ef-bfad-42010a7be011 , Session ID: 916ba574235304242319add00c86c366

---

<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:** [October 14, 2024, 8:00pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/12 "2024-10-14T20:00:43Z")

</div>

**Replying to raghuvanshagarwal’s Message**

> **Reply by raghuvanshagarwal | 2024-10-14 16:15:26**  
> Hey, it might be possible API key is not properly setup

**Reply by tyke\_18 | 2024-10-14 20:00:43**

Hi, can you elaborate on this please? What might I have done to not set it up properly? I’ve changed the API key 2 or 3 times by copying the API key from the Convai webpage to my project, Resources, ConvaiAPIkey (it was called something like this, I’m not at my computer), and pasted the API key into the field in the inspector, is that an incorrect way?

---

<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:** [October 15, 2024, 9:23am UTC](https://forum.convai.com/t/unity-long-term-memory/1895/13 "2024-10-15T09:23:22Z")

</div>

**Reply by tyke\_18 | 2024-10-15 09:23:22**

I’ve just tried adding my API key using the “Convai” \> “API Key Setup” option from the top menu bar in Unity, still get the error.

---

<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:** [October 15, 2024, 9:40am UTC](https://forum.convai.com/t/unity-long-term-memory/1895/14 "2024-10-15T09:40:55Z")

</div>

**Reply by k3kalinix | 2024-10-15 09:40:55**

There is a different issue

---

<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:** [October 15, 2024, 9:41am UTC](https://forum.convai.com/t/unity-long-term-memory/1895/15 "2024-10-15T09:41:26Z")

</div>

**Reply by k3kalinix | 2024-10-15 09:41:26**

As my teammate said, it will be fixed in the next release.

---

<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:** [November 25, 2024, 12:14pm UTC](https://forum.convai.com/t/unity-long-term-memory/1895/16 "2024-11-25T12:14:16Z")

</div>

Closed on November 25, 2024, 12:14pm UTC

This conversation happened on the Convai Discord Server, so this post will be closed.
