Soft Assert instead of harcoded

how to use Assert Statements , to assert the response from keywords?
example:
keyword A : POST msg A and get response A to verify content
test case A call keyword A
new test case B, POST msg B and get response B

i am using assertThat response B field 1 = hardcoded text result.
how to use assertThat response B field 1 = response A field 1?