AIController->GetBlackboardComponent()->SetValue(...);

First get the keyID that you want to set.

uint8 keyid = AIController->GetBlackboardComponent()->GetKeyID(FName(KeyName));

Next you want to set that key to the value you want to set it. Do not forget to specify the type of the value.

AIController->GetBlackboardComponent()->SetValue<UBlackboardKeyType_Vector>(keyid, Location);

That should do the trick. Tell me if it doesn’t work

Happy coding!